freebsd-skq/sys/compat/linux
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
..
linux_emul.c Indeed, remove bogus since r219405 check of the Linux ABI. 2011-03-09 05:59:33 +00:00
linux_emul.h Extend struct sysvec with new method sv_schedtail, which is used for an 2011-03-08 19:01:45 +00:00
linux_file.c Second-to-last commit implementing Capsicum capabilities in the FreeBSD 2011-08-11 12:30:23 +00:00
linux_file.h Implement the linux syscalls 2008-04-08 09:45:49 +00:00
linux_fork.c Add experimental support for process descriptors 2011-08-18 22:51:30 +00:00
linux_futex.c Remove now-obsolete comment. 2011-03-10 19:50:12 +00:00
linux_futex.h Yet another unimplemented futex operation, print out about. 2011-01-31 06:06:23 +00:00
linux_getcwd.c The NetBSD Foundation has granted permission to remove clause 3 and 4 from 2010-03-01 17:20:04 +00:00
linux_ioctl.c Second-to-last commit implementing Capsicum capabilities in the FreeBSD 2011-08-11 12:30:23 +00:00
linux_ioctl.h This is v4l2 support for the linuxulator. This allows to access FreeBSD 2011-05-04 09:05:39 +00:00
linux_ipc.c Remove the 'either' from the comment as it'll be less obvious that we 2011-07-17 05:33:22 +00:00
linux_ipc.h MFP4 (110956): 2006-12-21 13:11:06 +00:00
linux_mib.c Staticize functions which are not used somewhere else, move the 2011-03-15 13:40:47 +00:00
linux_mib.h Staticize functions which are not used somewhere else, move the 2011-03-15 13:40:47 +00:00
linux_misc.c Add accounting for most of the memory-related resources. 2011-04-05 20:23:59 +00:00
linux_misc.h linux compat: improve and fix sendmsg/recvmsg compatibility 2011-03-26 11:05:53 +00:00
linux_signal.c For realtime signals fill the sigval value. 2011-02-15 21:46:36 +00:00
linux_signal.h Put the macro declaration in the relevant include file for future use. 2011-02-15 21:22:09 +00:00
linux_socket.c Second-to-last commit implementing Capsicum capabilities in the FreeBSD 2011-08-11 12:30:23 +00:00
linux_socket.h linux compat: improve and fix sendmsg/recvmsg compatibility 2011-03-26 11:05:53 +00:00
linux_stats.c Second-to-last commit implementing Capsicum capabilities in the FreeBSD 2011-08-11 12:30:23 +00:00
linux_sysctl.c
linux_sysproto.h
linux_time.c The NetBSD Foundation has granted permission to remove clause 3 and 4 from 2010-03-01 17:20:04 +00:00
linux_uid16.c Since all other comparisons involving ngroups_max use 2010-01-15 07:05:00 +00:00
linux_util.c Retire the MALLOC and FREE macros. They are an abomination unto style(9). 2008-10-23 15:53:51 +00:00
linux_util.h Remove stale comment. 2010-10-14 19:30:44 +00:00
linux_videodev2_compat.h Commit the missing linux_videdev2_compat.h (lost somewhere between 2011-05-04 13:09:20 +00:00
linux_videodev2.h Add explanation about the use-permission and FreeBSDify it. 2011-05-04 08:41:55 +00:00
linux_videodev_compat.h This is v4l support for the linuxulator. This allows to access FreeBSD 2009-12-04 21:06:54 +00:00
linux_videodev.h Fix typo in comment, improve comment. 2011-05-04 08:42:31 +00:00