freebsd-dev/sys/i386/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
..
imgact_linux.c Add accounting for most of the memory-related resources. 2011-04-05 20:23:59 +00:00
linux_dummy.c linux compat: add non-dummy capget and capset system calls, regenerate 2011-03-26 10:59:24 +00:00
linux_genassym.c Segment registers are stored in the uc_mcontext member of the struct 2008-09-07 16:39:21 +00:00
linux_ipc64.h
linux_locore.s Change some movl's to mov's. Newer GAS no longer accept 'movl' instructions 2009-01-31 11:37:21 +00:00
linux_machdep.c Second-to-last commit implementing Capsicum capabilities in the FreeBSD 2011-08-11 12:30:23 +00:00
linux_proto.h linux compat: add non-dummy capget and capset system calls, regenerate 2011-03-26 10:59:24 +00:00
linux_ptrace.c Introduce the x86 kernel interfaces to allow kernel code to use 2010-06-05 15:59:59 +00:00
linux_support.s Move futex support code from <arch>/support.s into linux compat directory. 2007-05-23 08:33:06 +00:00
linux_syscall.h linux compat: add non-dummy capget and capset system calls, regenerate 2011-03-26 10:59:24 +00:00
linux_syscalls.c linux compat: add non-dummy capget and capset system calls, regenerate 2011-03-26 10:59:24 +00:00
linux_sysent.c linux compat: add non-dummy capget and capset system calls, regenerate 2011-03-26 10:59:24 +00:00
linux_systrace_args.c linux compat: add non-dummy capget and capset system calls, regenerate 2011-03-26 10:59:24 +00:00
linux_sysvec.c Export the correct AT_PLATFORM value. 2011-03-26 09:25:35 +00:00
linux.h Revert r220032:linux compat: add SO_PASSCRED option with basic handling 2011-03-31 08:14:51 +00:00
Makefile add DTrace systrace support for linux32 and freebsd32 on amd64 syscalls 2011-03-12 08:51:43 +00:00
syscalls.conf add DTrace systrace support for linux32 and freebsd32 on amd64 syscalls 2011-03-12 08:51:43 +00:00
syscalls.master linux compat: add non-dummy capget and capset system calls 2011-03-26 10:51:56 +00:00