opnsense-src/sys/security/audit
Robert Watson a9d2f8d84f Second-to-last commit implementing Capsicum capabilities in the FreeBSD
kernel for FreeBSD 9.0:

Add a new capability mask argument to fget(9) and friends, allowing system
call code to declare what capabilities are required when an integer file
descriptor is converted into an in-kernel struct file *.  With options
CAPABILITIES compiled into the kernel, this enforces capability
protection; without, this change is effectively a no-op.

Some cases require special handling, such as mmap(2), which must preserve
information about the maximum rights at the time of mapping in the memory
map so that they can later be enforced in mprotect(2) -- this is done by
narrowing the rights in the existing max_protection field used for similar
purposes with file permissions.

In namei(9), we assert that the code is not reached from within capability
mode, as we're not yet ready to enforce namespace capabilities there.
This will follow in a later commit.

Update two capability names: CAP_EVENT and CAP_KEVENT become
CAP_POST_KEVENT and CAP_POLL_KEVENT to more accurately indicate what they
represent.

Approved by:	re (bz)
Submitted by:	jonathan
Sponsored by:	Google Inc
2011-08-11 12:30:23 +00:00
..
audit.c Add some FEATURE macros for various features (AUDIT/CAM/IPC/KTR/MAC/NFS/NTP/ 2011-02-25 10:11:01 +00:00
audit.h Provide ability to audit cap_rights_t arguments. 2011-07-18 12:58:18 +00:00
audit_arg.c Second-to-last commit implementing Capsicum capabilities in the FreeBSD 2011-08-11 12:30:23 +00:00
audit_bsm.c Provide ability to audit cap_rights_t arguments. 2011-07-18 12:58:18 +00:00
audit_bsm_domain.c Merge OpenBSM 1.1 changes to the FreeBSD 8.x kernel: 2009-04-19 14:53:17 +00:00
audit_bsm_errno.c Add ECAPMODE, "Not permitted in capability mode", a new kernel errno 2011-03-01 13:14:28 +00:00
audit_bsm_fcntl.c Merge OpenBSM 1.1 changes to the FreeBSD 8.x kernel: 2009-04-19 14:53:17 +00:00
audit_bsm_klib.c Replace sbuf_overflowed() with sbuf_error(), which returns any error 2010-09-10 16:42:16 +00:00
audit_bsm_socket_type.c Merge OpenBSM alpha 5 from OpenBSM vendor branch to head, both 2009-01-14 10:44:16 +00:00
audit_bsm_token.c Having thrown the cat out of the house, add a necessary include. 2009-09-08 13:24:36 +00:00
audit_ioctl.h Don't expose #ifdef NOTYET parts to userspace via audit_ioctl.h, just 2007-04-29 16:20:32 +00:00
audit_pipe.c Adapt vfs kqfilter to the shared vnode lock used by zfs write vop. Use 2009-06-10 20:59:32 +00:00
audit_private.h Provide ability to audit cap_rights_t arguments. 2011-07-18 12:58:18 +00:00
audit_syscalls.c Replace AUDIT_ARG() with variable argument macros with a set more more 2009-06-27 13:58:44 +00:00
audit_trigger.c Generally avoid <space><tab> as a white space anomoly. 2008-07-22 16:44:48 +00:00
audit_worker.c Remove the thread argument from the FSD (File-System Dependent) parts of 2009-05-11 15:33:26 +00:00