freebsd-dev/lib/libc
Jonathan Anderson cfb5f76865 Add experimental support for process descriptors
A "process descriptor" file descriptor is used to manage processes
without using the PID namespace. This is required for Capsicum's
Capability Mode, where the PID namespace is unavailable.

New system calls pdfork(2) and pdkill(2) offer the functional equivalents
of fork(2) and kill(2). pdgetpid(2) allows querying the PID of the remote
process for debugging purposes. The currently-unimplemented pdwait(2) will,
in the future, allow querying rusage/exit status. In the interim, poll(2)
may be used to check (and wait for) process termination.

When a process is referenced by a process descriptor, it does not issue
SIGCHLD to the parent, making it suitable for use in libraries---a common
scenario when using library compartmentalisation from within large
applications (such as web browsers). Some observers may note a similarity
to Mach task ports; process descriptors provide a subset of this behaviour,
but in a UNIX style.

This feature is enabled by "options PROCDESC", but as with several other
Capsicum kernel features, is not enabled by default in GENERIC 9.0.

Reviewed by: jhb, kib
Approved by: re (kib), mentor (rwatson)
Sponsored by: Google Inc
2011-08-18 22:51:30 +00:00
..
amd64 Remove incorrect attribution. 2011-07-21 20:06:14 +00:00
arm Fix typos - remove duplicate "the". 2011-02-21 09:01:34 +00:00
compat-43
db Fix clang warnings. 2011-06-18 13:56:33 +00:00
gdtoa
gen posix_spawn: If an error is detected in the child process, reap the zombie. 2011-07-10 14:20:11 +00:00
gmon
i386 Remove duplicate .note.GNU-stack section declaration. bcopy already 2011-02-04 21:04:00 +00:00
ia64 Fix typos - remove duplicate "the". 2011-02-21 09:01:34 +00:00
iconv Put a quick bandaid on internal citrus locking. 2011-06-19 13:35:46 +00:00
include Introduce a non-portable function pthread_getthreadid_np(3) to retrieve 2011-02-07 21:26:46 +00:00
inet
isc
locale
mips Fix bzero() for 64-bit. 2011-02-22 07:49:51 +00:00
nameser
net Fix a pathname (s,netinet/if_ether.h,net/ethernet.h,). 2011-08-08 03:09:03 +00:00
nls
posix1e Make it possible to use permission sets (full_set, modify_set, read_set 2011-04-09 07:42:25 +00:00
powerpc Fix typos - remove duplicate "the". 2011-02-21 09:01:34 +00:00
powerpc64 Fix typos - remove duplicate "the". 2011-02-21 09:01:34 +00:00
quad
regex
resolv
rpc Fix a bug in the userland rpc library, where it would use a 2011-04-10 14:11:07 +00:00
softfloat
sparc64 Disconnect sun4v architecture from the three. 2011-05-14 01:53:38 +00:00
stdio Because we call __printf_out() with a on-stack buffer, also call 2011-03-06 19:47:46 +00:00
stdlib Fix building of 32-bit compat libraries on amd64 with clang, and using 2011-07-18 20:07:29 +00:00
stdtime
string Fix prototype for ffsll(3) and fls(3). 2011-05-03 19:33:06 +00:00
sys Add experimental support for process descriptors 2011-08-18 22:51:30 +00:00
uuid
xdr Add a HISTORY section 2011-07-10 06:57:00 +00:00
yp Remove duplicate "in". 2011-03-01 11:47:51 +00:00
Makefile Add the BSD-licensed Citrus iconv to the base system with default off 2011-02-25 00:04:39 +00:00
Versions.def