freebsd-dev/sys/dev/aac
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
..
aac_cam.c When masking direct and processor devices during an inquiry, properly 2010-12-06 17:06:21 +00:00
aac_debug.c Whitespace cleanup, in advance of next sync with Adaptec's driver. No 2010-04-13 00:33:07 +00:00
aac_disk.c Use device_printf where possible, and otherwise at least include the 2010-09-16 23:33:24 +00:00
aac_linux.c Second-to-last commit implementing Capsicum capabilities in the FreeBSD 2011-08-11 12:30:23 +00:00
aac_pci.c Sync some minor items with the upstream driver. Should have no functional 2010-04-13 01:16:15 +00:00
aac_tables.h Use enums in the aac_command_status_table rather than duplicating the same 2010-04-13 12:10:55 +00:00
aac.c - Fix races on detach handling of AAC_IFFLAGS_* mask 2011-06-10 20:23:56 +00:00
aacreg.h Previously, the aac driver did not handle enclosure management AIFs, 2010-09-29 14:22:00 +00:00
aacvar.h - Fix races on detach handling of AAC_IFFLAGS_* mask 2011-06-10 20:23:56 +00:00