| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
Pointed out by: Amancio
|
|
|
|
| |
on a child process.
|
|
|
|
|
| |
PR: 2382
Submitted by: Peter Jeremy <perer.jeremy@alcatel.com.au>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
parameter is optional except where:
cmd == {IPC_SET || IPC_STAT || GETALL || SETVAL || SETALL}
PR: 2448
Reviewed by: bde
Submitted by: Tim Singletary <tsingle@sunland.gsfc.nasa.gov>
Minor tweaks by: steve
|
|
|
|
|
|
| |
as it has its own manpage.
Discussed with: bde
|
|
|
|
| |
uu_lock() to another process.
|
|
|
|
| |
between libscrypt.a and libdescrypt.a
|
|
|
|
|
|
|
|
| |
point to it rather than libscrypt.
This was how it was done prior to libscrypt being added in. This should
stop more people getting burnt with the /usr/lib -> /usr/lib/aout
transition, and the same when the ELF libs come online.
|
|
|
|
| |
Submitted by: jhay
|
|
|
|
|
| |
and modify that if the writev() syscall does not completely write
all bytes in a single call.
|
|
|
|
|
| |
instead of explicitly ignoring some errors. This allows for the case
where a device is naturally non-blocking.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Move a.out libraries to /usr/lib/aout to make space for ELF libs.
Make rtld usr /usr/lib/aout as default library path.
Make ldconfig reject /usr/lib as an a.out library path.
Fix various Makefiles for LIBDIR!=/usr/lib breakage.
This will after a make world & reboot give a system that no
longer uses /usr/lib/*, infact one could remove all the old
libraries there, they are not used anymore.
We are getting close to an ELF make world, but I'll let this
all settle for a week or two...
|
|
|
|
|
|
| |
slipped in on the previous commit.
Submitted by: bde
|
|
|
|
|
|
|
| |
written without returning to the caller. This only occurs on pipes
where either the number of bytes written is greater than the pipe
buffer or if there is insufficient space in the pipe buffer because the
reader is reading slower than the writer is writing.
|
| |
|
|
|
|
|
|
|
| |
login class.
PR: 6636
Submitted by: Jason Young <doogie@forbidden-donut.anet-stl.com>
|
|
|
|
|
|
|
| |
DOMAIN as DOMAIN user through NAT function. See also RFC1002 for
futher detail of SMB structure.
Submitted by: Atsushi Murai <amurai@spec.co.jp>
|
|
|
|
|
| |
also exists here (the timeout can expire much sooner than it's supposed
to).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
size we receive here should fit into the receive buffer. Unfortunately,
there's no 100% foolproof way to distinguish a ridiculously large record
size that a client actually meant to send us from a ridiculously large
record size that was sent as a spoof attempt.
The one value that we can positively identify as bogus is zero. A
zero-sized record makes absolutely no sense, and sending an endless
supply of zeroes will cause the server to loop forever trying to
fill its receive buffer.
Note that the changes made to readtcp() make it okay to revert this
sanity test since the deadlock case where a client can keep the server
occupied forever in the readtcp() select() loop can't happen anymore.
This solution is not ideal, but is relatively easy to implement. The
ideal solution would be to re-arrange the way dispatching is handled
so that the select() loop in readtcp() can be eliminated, but this is
difficult to implement. I do plan to implement the complete solution
eventually but in the meantime I don't want to leave the RPC library
totally vulnerable.
That you very much Sun, may I have another.
|
|
|
|
| |
Obtained from: Frank van der Linden <frank@wins.uva.nl>
|
|
|
|
| |
If we have it in libc, we don't need it here.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
uses readtcp() to gather data from the network; readtcp() uses select(),
with a timeout of 35 seconds. The problem with this is that if you
connect to a TCP server, send two bytes of data, then just pause, the
server will remain blocked in readtcp() for up to 35 seconds, which is
sort of a long time. If you keep doing this every 35 seconds, you can
keep the server occupied indefinitely.
To fix this, I modified readtcp() (and its cousin, readunix() in svc_unix.c)
to monitor all service transport handles instead of just the current socket.
This allows the server to keep handling new connections that arrive while
readtcp() is running. This prevents one client from potentially monopolizing
a server.
Also, while I was here, I fixed a bug in the timeout calculations. Someone
attempted to adjust the timeout so that if select() returned EINTR and the
loop was restarted, the timeout would be reduced so that rather than waiting
for another 35 seconds, you could never wait for more than 35 seconds total.
Unfortunately, the calculation was wrong, and the timeout could expire much
sooner than 35 seconds.
|
|
|
|
|
|
| |
passwords attempting to invoke login(1) on a pty.
PR: 3289
|
|
|
|
|
| |
syscall style libc is using otherwise the library can contain calls
(like issetugid) that you don't find out until you build X programs.
|
|
|
|
|
|
|
| |
self reference in sigaction(2) man page.
Submitted by: Josh Gilliam <josh@quick.net>
PR: 6617
|
|
|
|
|
|
|
|
|
|
|
|
| |
recently in BUGTRAQ. The set_input_fragment() routine in the XDR record
marking code blindly trusts that the first two bytes it sees will in fact
be an actual record header and that the specified size will be sane. In
fact, if you just telnet to a listening port of an RPC service and send a
few carriage returns, set_input_fragment() will obtain a ridiculously large
record size and sit there for a long time trying to read from the network.
A sanity test is required: if the record size is larger than the receive
buffer, punt.
|
|
|
|
|
|
| |
recently in BUGTRAQ. If a stream oriented transport fails to properly decode
an RPC message header structure where there should be one, it should mark
the stream as dead so that the connection will be dropped.
|
|
|
|
|
|
|
|
|
| |
dereferenced. This is because 'SP' is only initialized via 'newterm()'
(which is not required if you are going to interact with the 'terminfo'
database without using 'ncurses').
PR: 6648
Submitted by: Max Euston <meuston@jmrodgers.com>
|
|
|
|
|
| |
Otherwise can't see sd10 (obtained using wired down sd unit numbers),
reguardless of the number of actual disks you have.
|
|
|
|
| |
handle the lack of __getcwd syscall in NetBSD.
|
|
|
|
| |
when building libc with NetBSD syscalls.
|
|
|
|
| |
work in a 64-bit environment.
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
warnings about static inline functions that cause the build to fail.
And for some reason, alpha needs MD5. Find that out later!
|
|
|
|
| |
a long too (it does have a proper prototype).
|
| |
|
|
|
|
| |
the i386 builds with a __generic prefix need to have that stripped.
|
| |
|
|
|
|
| |
because that is wrong on alpha.
|
| |
|
|
|
|
|
|
|
|
|
| |
Use rpcgen's -C option, although using it for non-headers breaks K&R
support. A local copy of yp.h is built to avoid adding
-I/usr/include/rpcsvc to CFLAGS. This version of yp.h differed from
<rpcsvc/yp.h> only in not declaring prototypes.
Fixed style bugs.
|
|
|
|
| |
a few weeks now.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
but also assumes that they are 32-bits. This is one place where I don't
think it is appropriate to change 'long' to 'int'. I don't see why the
code couldn't be fixed so that using natural long variables does the
right thing. It's spaggetti code so it'll take some effort. Obviously
NetBSD thought so too because they change 'long' to 'int32_t' etc
and left it at that. As a temporary measure FreeBSD/Alpha can use the
NetBSD code and put this on the list of things to fix.
|
| |
|