Robert Watson
bd5466d65a
Document a bug in our chroot(2) implementation: if access control
...
checks, including the "open directory" check or a MAC check fail,
after the working directory of the process has been changed, then
the cwd of the process will be left as the target directory rather
than the original directory.
At some point, this bug might be fixable by performing the directory
change only after permission is granted for the change. In the
mean time document it (it's been there for a while).
2003-01-31 21:19:22 +00:00
Tim J. Robbins
f6f38550e6
Zap another reference to !RFPROC being unsupported that I missed before.
2003-01-31 08:59:00 +00:00
Tim J. Robbins
722ca3efd4
Don't use -compact in list of available flags. Fix tag width.
2003-01-31 08:55:42 +00:00
Tim J. Robbins
34f2304ff2
!RFPROC has been supported for a while now.
2003-01-31 08:45:11 +00:00
Tim J. Robbins
56b9200d1f
Back out previous. Many people disagreed with removing the warning.
2003-01-30 23:32:53 +00:00
Tom Rhodes
61827fde23
Add getosreldate.3 to the Makefile.
2003-01-30 21:38:39 +00:00
Tom Rhodes
a117d47242
Add a manual page for getosreldate.c.
...
PR: 46365
Submitted by: gioria (original version)
OK'ed by: alfred (older version)
2003-01-30 21:37:06 +00:00
Poul-Henning Kamp
7656b3500d
Catch some cases where asking for ridiculously large allocations could
...
result in a segfault. Instead just return NULL.
2003-01-30 15:00:17 +00:00
Tim J. Robbins
8137227111
Remove runtime warning about gets().
2003-01-30 12:00:26 +00:00
Tim J. Robbins
21d4d23958
Lock stdin on entry, unlock on return, use __sgetc() instead of getchar()
...
to avoid locking the stream for each character and to avoid input being
scattered among multiple threads.
2003-01-30 11:46:25 +00:00
Martin Blapp
2e26eba4b9
Fix signed/unsigned comparison warnings.
...
Reviewed by: phk
Obtained from: NetBSD
2003-01-27 22:46:50 +00:00
Martin Blapp
3c788545e8
Fix signed/unsigned comparison warnings. Fix spelling error in
...
comment.
NetBSD Rev. 1.9 and 1.7
Reviewed by: phk
Obtained from: NetBSD
2003-01-27 22:45:08 +00:00
Martin Blapp
33e0ae486e
Make this work in the !INET6 case -- if we mismatch the AF, don't return a
...
bogus (uninitialized) structure. Also, ignore v4 ifa's with no broadcast
address (rather than core dumping).
NetBSD Rev 1.8
Reviewed by: phk
Obtained from: NetBSD
2003-01-27 22:43:23 +00:00
Martin Blapp
d063ef1461
Check pmap_flag before sendto.
...
NetBSD r 1.5
Reviewed by: phk
Obtained from: NetBSD
2003-01-27 22:38:25 +00:00
Martin Blapp
555f4cffb0
Make sure we don't look before the beginning of the string.
...
NetBSD Rev 1.5
Reviewed by: phk
Obtained from: NetBSD
2003-01-27 22:36:53 +00:00
Martin Blapp
77335102aa
Add missing __rpc_fixup_addr. This is needed to make
...
mount_nfs -T work for scoped addresses.
NetBSD Rev 1.11
Reviewed by: phk
Obtained from: NetBSD
2003-01-27 22:27:55 +00:00
Martin Blapp
b951fbe40c
Free the correct buffer in error handling.
...
Handle that malloc may return NULL.
NetBSD Rev. 1.8
Reviewed by: phk
Obtained from: NetBSD
2003-01-27 22:22:59 +00:00
Martin Blapp
40525d3deb
Reset the record lenght and received bytes once a record
...
is finished. This fixes clients doing two RPCs over the
same connection at the same time. Without this fix, we
could end with a reply to old data.
Submitted by: Frank van der Linden <fvdl@netbsd.org>
Reviewed by: rwatson
Obtained from: NetBSD
2003-01-27 22:19:32 +00:00
Martin Blapp
0ae0e1ea47
Fix namespace pollution introduced in previous commit.
...
Reviewed by: phk
2003-01-26 23:01:49 +00:00
Alfred Perlstein
b17c9cfa5e
Add const qualifier to data argument for msgsnd.
...
PR: standards/45274
Submitted by: Craig Rodrigues <rodrigc@attbi.com>
2003-01-26 20:09:34 +00:00
Tim J. Robbins
21a1863da8
Remove part of my stateful locale patch that slipped into the previous rev.
2003-01-26 11:45:54 +00:00
Tim J. Robbins
c297498757
Initial implementation of the C99 feature whereby calling freopen() with
...
a NULL filename argument allows a stream's mode to be changed. At the
moment it just recycles the old file descriptor instead of storing the
filename somewhere and using that to reopen the file, as the standard
seems to require. Strictly conforming C99 applications probably can't
tell the difference but POSIX ones can.
PR: 46791
2003-01-26 10:01:59 +00:00
Alfred Perlstein
e1d7d0bb60
Bring shm functions closer the the opengroup standards.
...
PR: 47469
Submitted by: Craig Rodrigues <rodrigc@attbi.com>
2003-01-25 21:33:05 +00:00
Alfred Perlstein
3beb32709d
Bring semop() closer the the opengroup standards.
...
PR: 47471
Submitted by: Craig Rodrigues <rodrigc@attbi.com>
2003-01-25 21:27:37 +00:00
Mike Barcroft
3f049d395e
Add an MLINK malloc.conf(5) -> malloc(3).
2003-01-24 13:58:56 +00:00
Poul-Henning Kamp
e0c2da42ec
For "sensitive" processes, we always set the 'A' flag which causes abort()
...
to be called on first sight of trouble.
"sensitive" is somewhat arbitrarily defined as "setuid, setgid, uid == root
or gid == wheel".
The 'A' option carries no performance penalty.
It is not possible to override this setting: fix the program instead.
Absentmindedly nodded OK to by: various
2003-01-23 21:26:47 +00:00
Maxim Konovalov
f2fe707f21
Remove EOL whitespaces.
2003-01-20 11:30:08 +00:00
Maxim Konovalov
9028092dc5
o Fix a typo.
...
o Prepend a function name by .Fn macro.
Reviewed by: archie
2003-01-20 11:28:41 +00:00
David E. O'Brien
0f38d8d9aa
Sync with NetBSD -- sl_add() now returns an int.
2003-01-19 01:16:01 +00:00
David E. O'Brien
bd2d1003c1
Use __FBSDID.
2003-01-19 00:17:03 +00:00
David E. O'Brien
5cafcbb49b
We don't need our own personal definition of __CONCAT.
2003-01-18 23:26:04 +00:00
Thomas Moestl
1902ba0c83
Document that listen() can return EINVAL now.
2003-01-17 19:25:27 +00:00
Tim J. Robbins
0cff97c8bc
Do a better job of documenting mincore(2), esp. the MINCORE_* flags.
2003-01-17 04:06:57 +00:00
Martin Blapp
9790dbfc0f
Fix memleak.
...
Reviewed by: rwatson
MFC after: 2 weeks
2003-01-16 16:43:58 +00:00
Martin Blapp
08497c026c
Implement non-blocking tcp-connections.
...
Reviewed by: rwatson
Obtained from: NetBSD
MFC after: 1 day
2003-01-16 07:13:51 +00:00
Johan Karlsson
de216a83c2
realpath(3) should use PATH_MAX instead of MAXPATHLEN according to POSIX.
...
This also reverts the PATH_MAX -> MAXPATHLEN part of
rev 1.3 of src/bin/realpath/realpath.c
Requested by: imp
Reviewed by: imp, bde
2003-01-15 21:22:55 +00:00
Tim J. Robbins
5b8dbaa1f9
Add a missing word.
2003-01-15 09:48:15 +00:00
Tim J. Robbins
bae7e9ec5e
Document the named semaphore functions. This could still use a bit
...
of polishing.
2003-01-15 03:07:40 +00:00
Chris Costello
5bc8d71283
Actually add mac_prepare.3.
...
Sponsored by: DARPA, Network Associates Laboratories
2003-01-15 03:05:21 +00:00
Chris Costello
8f8690e73b
Cross-reference mac(4)
...
Sponsored by: DARPA, Network Associates Laboratories
2003-01-15 03:03:05 +00:00
Chris Costello
c75fc22921
s/SEE_ALSO/SEE ALSO/
...
Cross-reference mac(4) and mac(9)
Sponsored by: DARPA, Network Associates Laboratories
2003-01-15 03:02:30 +00:00
Chris Costello
76a829fd1d
o Document mac_prepare() and associated functions
...
o Link mac_get_pid.3 to mac_get.3
o Update SEE ALSO to refer to mac_prepare, and added missing references
o Remove clause #3 on my work
o Update mac_get.3 for the updated MAC API
Sponsored by: DARPA, Network Associates Laboratories
Obtained from: TrustedBSD Project
2003-01-15 00:45:31 +00:00
Chris Costello
e4ee15b13f
o Remove clause #3
...
o Document mac_set_link().
Sponsored by: DARPA, Network Associates Labs
2003-01-14 23:20:40 +00:00
Tim J. Robbins
74e03642ee
Back out previous; sharing semaphores between processes only works
...
in certain special cases.
2003-01-14 07:14:06 +00:00
Tim J. Robbins
ab099bd309
Sharing semaphores between processes works now, so remove the stale comments
...
about it always returning EPERM. Document that ENFILE occurs when the
limit on kernel semaphores is reached.
2003-01-14 04:12:33 +00:00
Tim J. Robbins
51f2ddd7af
Cross reference sem(4) so users know which kernel options are required
...
to use these semaphore functions.
2003-01-14 03:39:09 +00:00
Tim J. Robbins
a91b25dc1c
Add the newly created semaphore to the named semaphore list in sem_open()
...
so that multiple opens of the same semaphore without an intervening
sem_close() return the same object, and so that sem_close() does not
segfault while trying to remove the item from the list.
2003-01-14 03:36:45 +00:00
Tim J. Robbins
7a1dd698e8
Including <time.h> before <aio.h> has not been necessary for a while now.
2003-01-14 02:37:06 +00:00
Joerg Wunsch
b4206324a5
Mention the oddities and requirements for mount operations executed by
...
non-root users.
PR: docs/42651
Submitted by: Thomas Seck <tmseck@netcologne.de>
MFC after: 3 days
2003-01-13 19:42:21 +00:00
Tim J. Robbins
d8b504e33c
Refer to 1003.1 instead of 1003.2 in the Standards section.
2003-01-13 10:37:11 +00:00