freebsd-dev/sys/compat/linux
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
..
linux_emul.c Indeed, remove bogus since r219405 check of the Linux ABI. 2011-03-09 05:59:33 +00:00
linux_emul.h Extend struct sysvec with new method sv_schedtail, which is used for an 2011-03-08 19:01:45 +00:00
linux_file.c Second-to-last commit implementing Capsicum capabilities in the FreeBSD 2011-08-11 12:30:23 +00:00
linux_file.h Implement the linux syscalls 2008-04-08 09:45:49 +00:00
linux_fork.c Do not clobber %rdx. 2011-02-20 07:58:30 +00:00
linux_futex.c Remove now-obsolete comment. 2011-03-10 19:50:12 +00:00
linux_futex.h Yet another unimplemented futex operation, print out about. 2011-01-31 06:06:23 +00:00
linux_getcwd.c The NetBSD Foundation has granted permission to remove clause 3 and 4 from 2010-03-01 17:20:04 +00:00
linux_ioctl.c Second-to-last commit implementing Capsicum capabilities in the FreeBSD 2011-08-11 12:30:23 +00:00
linux_ioctl.h This is v4l2 support for the linuxulator. This allows to access FreeBSD 2011-05-04 09:05:39 +00:00
linux_ipc.c Remove the 'either' from the comment as it'll be less obvious that we 2011-07-17 05:33:22 +00:00
linux_ipc.h MFP4 (110956): 2006-12-21 13:11:06 +00:00
linux_mib.c Staticize functions which are not used somewhere else, move the 2011-03-15 13:40:47 +00:00
linux_mib.h Staticize functions which are not used somewhere else, move the 2011-03-15 13:40:47 +00:00
linux_misc.c Add accounting for most of the memory-related resources. 2011-04-05 20:23:59 +00:00
linux_misc.h linux compat: improve and fix sendmsg/recvmsg compatibility 2011-03-26 11:05:53 +00:00
linux_signal.c For realtime signals fill the sigval value. 2011-02-15 21:46:36 +00:00
linux_signal.h Put the macro declaration in the relevant include file for future use. 2011-02-15 21:22:09 +00:00
linux_socket.c Second-to-last commit implementing Capsicum capabilities in the FreeBSD 2011-08-11 12:30:23 +00:00
linux_socket.h linux compat: improve and fix sendmsg/recvmsg compatibility 2011-03-26 11:05:53 +00:00
linux_stats.c Second-to-last commit implementing Capsicum capabilities in the FreeBSD 2011-08-11 12:30:23 +00:00
linux_sysctl.c
linux_sysproto.h
linux_time.c The NetBSD Foundation has granted permission to remove clause 3 and 4 from 2010-03-01 17:20:04 +00:00
linux_uid16.c Since all other comparisons involving ngroups_max use 2010-01-15 07:05:00 +00:00
linux_util.c Retire the MALLOC and FREE macros. They are an abomination unto style(9). 2008-10-23 15:53:51 +00:00
linux_util.h Remove stale comment. 2010-10-14 19:30:44 +00:00
linux_videodev2_compat.h Commit the missing linux_videdev2_compat.h (lost somewhere between 2011-05-04 13:09:20 +00:00
linux_videodev2.h Add explanation about the use-permission and FreeBSDify it. 2011-05-04 08:41:55 +00:00
linux_videodev_compat.h This is v4l support for the linuxulator. This allows to access FreeBSD 2009-12-04 21:06:54 +00:00
linux_videodev.h Fix typo in comment, improve comment. 2011-05-04 08:42:31 +00:00