diff options
author | jonathan <jonathan@FreeBSD.org> | 2011-07-15 18:26:19 +0000 |
---|---|---|
committer | jonathan <jonathan@FreeBSD.org> | 2011-07-15 18:26:19 +0000 |
commit | 4ec3aaddb5d1848253bf9cb9b4dfccc67a058d4d (patch) | |
tree | 240261c2ac1f0d6c197b3869fcd42bcffeab635f /sys/compat/freebsd32 | |
parent | 22fe1722a8552b76089b0bbb9265e6d9586a56a0 (diff) | |
download | FreeBSD-src-4ec3aaddb5d1848253bf9cb9b4dfccc67a058d4d.zip FreeBSD-src-4ec3aaddb5d1848253bf9cb9b4dfccc67a058d4d.tar.gz |
Add cap_new() and cap_getrights() system calls.
Implement two previously-reserved Capsicum system calls:
- cap_new() creates a capability to wrap an existing file descriptor
- cap_getrights() queries the rights mask of a capability.
Approved by: mentor (rwatson), re (Capsicum blanket)
Sponsored by: Google Inc
Diffstat (limited to 'sys/compat/freebsd32')
-rw-r--r-- | sys/compat/freebsd32/syscalls.master | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/compat/freebsd32/syscalls.master b/sys/compat/freebsd32/syscalls.master index 3e19298..d4b67ae 100644 --- a/sys/compat/freebsd32/syscalls.master +++ b/sys/compat/freebsd32/syscalls.master @@ -957,8 +957,9 @@ 512 AUE_SHMCTL NOSTD { int freebsd32_shmctl(int shmid, int cmd, \ struct shmid_ds32 *buf); } 513 AUE_LPATHCONF NOPROTO { int lpathconf(char *path, int name); } -514 AUE_CAP_NEW UNIMPL cap_new -515 AUE_CAP_GETRIGHTS UNIMPL cap_getrights +514 AUE_CAP_NEW NOPROTO { int cap_new(int fd, u_int64_t rights); } +515 AUE_CAP_GETRIGHTS NOPROTO { int cap_getrights(int fd, \ + u_int64_t *rightsp); } 516 AUE_CAP_ENTER NOPROTO { int cap_enter(void); } 517 AUE_CAP_GETMODE NOPROTO { int cap_getmode(u_int *modep); } 518 AUE_PDFORK UNIMPL pdfork |