opnsense-src/sys/security/mac
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
..
mac_atalk.c Continue work to optimize performance of "options MAC" when no MAC policy 2009-06-03 18:46:28 +00:00
mac_audit.c Rename MAC Framework-internal macros used to invoke policy entry points: 2009-05-01 21:05:40 +00:00
mac_cred.c Rename MAC Framework-internal macros used to invoke policy entry points: 2009-05-01 21:05:40 +00:00
mac_framework.c sysctl(9) cleanup checkpoint: amd64 GENERIC builds cleanly. 2011-01-12 19:54:14 +00:00
mac_framework.h Remove 'uio' argument from MAC Framework and MAC policy entry points for 2009-03-08 12:32:06 +00:00
mac_inet.c Continue work to optimize performance of "options MAC" when no MAC policy 2009-06-03 18:46:28 +00:00
mac_inet6.c Continue work to optimize performance of "options MAC" when no MAC policy 2009-06-03 18:46:28 +00:00
mac_internal.h Add an extra comment to the SDT probes definition. This allows us to get 2010-08-22 11:18:57 +00:00
mac_label.c Introduce accessor functions mac_label_get() and mac_label_set() to replace 2007-02-06 14:19:25 +00:00
mac_net.c Add one further check with mac_policy_count to an mbuf copying case 2009-06-03 19:41:12 +00:00
mac_pipe.c Rename MAC Framework-internal macros used to invoke policy entry points: 2009-05-01 21:05:40 +00:00
mac_policy.h Remove 'uio' argument from MAC Framework and MAC policy entry points for 2009-03-08 12:32:06 +00:00
mac_posix_sem.c Rename MAC Framework-internal macros used to invoke policy entry points: 2009-05-01 21:05:40 +00:00
mac_posix_shm.c Rename MAC Framework-internal macros used to invoke policy entry points: 2009-05-01 21:05:40 +00:00
mac_priv.c Rename MAC Framework-internal macros used to invoke policy entry points: 2009-05-01 21:05:40 +00:00
mac_process.c Unless "cnt" exceeds MAX_COMMIT_COUNT, nfsrv_commit() and nfsvno_fsync() are 2011-02-05 21:21:27 +00:00
mac_socket.c Continue work to optimize performance of "options MAC" when no MAC policy 2009-06-03 18:46:28 +00:00
mac_syscalls.c Second-to-last commit implementing Capsicum capabilities in the FreeBSD 2011-08-11 12:30:23 +00:00
mac_system.c Rename MAC Framework-internal macros used to invoke policy entry points: 2009-05-01 21:05:40 +00:00
mac_sysv_msg.c Rename MAC Framework-internal macros used to invoke policy entry points: 2009-05-01 21:05:40 +00:00
mac_sysv_sem.c Rename MAC Framework-internal macros used to invoke policy entry points: 2009-05-01 21:05:40 +00:00
mac_sysv_shm.c Rename MAC Framework-internal macros used to invoke policy entry points: 2009-05-01 21:05:40 +00:00
mac_vfs.c Add missing DTrace probe invocation to mac_vnode_check_open; the probe 2010-10-23 16:59:39 +00:00