aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/syscalls.master
diff options
context:
space:
mode:
authorJonathan Anderson <jonathan@FreeBSD.org>2011-08-18 22:51:30 +0000
committerJonathan Anderson <jonathan@FreeBSD.org>2011-08-18 22:51:30 +0000
commitcfb5f76865887cb85825ed970b8bbc4ab2448b5d (patch)
treeec80efcada771dd68fe28d71eaf850289af0e772 /sys/kern/syscalls.master
parentf55d3fbe8438d73a393729763a4abca5b72233a2 (diff)
downloadsrc-cfb5f76865887cb85825ed970b8bbc4ab2448b5d.tar.gz
src-cfb5f76865887cb85825ed970b8bbc4ab2448b5d.zip
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
Notes
Notes: svn path=/head/; revision=224987
Diffstat (limited to 'sys/kern/syscalls.master')
-rw-r--r--sys/kern/syscalls.master8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/kern/syscalls.master b/sys/kern/syscalls.master
index 0b249a5b55ad..b79c6c7109cc 100644
--- a/sys/kern/syscalls.master
+++ b/sys/kern/syscalls.master
@@ -919,10 +919,10 @@
u_int64_t *rightsp); }
516 AUE_CAP_ENTER STD { int cap_enter(void); }
517 AUE_CAP_GETMODE STD { int cap_getmode(u_int *modep); }
-518 AUE_PDFORK UNIMPL pdfork
-519 AUE_PDKILL UNIMPL pdkill
-520 AUE_PDGETPID UNIMPL pdgetpid
-521 AUE_PDWAIT UNIMPL pdwait
+518 AUE_PDFORK STD { int pdfork(int *fdp, int flags); }
+519 AUE_PDKILL STD { int pdkill(int fd, int signum); }
+520 AUE_PDGETPID STD { int pdgetpid(int fd, pid_t *pidp); }
+521 AUE_PDWAIT UNIMPL pdwait4
522 AUE_SELECT STD { int pselect(int nd, fd_set *in, \
fd_set *ou, fd_set *ex, \
const struct timespec *ts, \