freebsd-skq/sys/dev/hwpmc
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
..
hwpmc_amd.c
hwpmc_amd.h
hwpmc_arm.c Intel XScale hwpmc(4) support. 2009-12-23 23:16:54 +00:00
hwpmc_core.c Fix invalid class removal when IAF is not the last class. 2010-09-05 13:31:14 +00:00
hwpmc_core.h Make sure that we clear the correct bits when we turn off 2010-07-29 17:52:23 +00:00
hwpmc_ia64.c
hwpmc_intel.c - Support for uncore counting events: one fixed PMC with the uncore 2010-04-02 13:23:49 +00:00
hwpmc_logging.c Second-to-last commit implementing Capsicum capabilities in the FreeBSD 2011-08-11 12:30:23 +00:00
hwpmc_mips24k.c Add support for hwpmc(4) on the MIPS 24K, 32 bit, embedded processor. 2010-03-03 15:05:58 +00:00
hwpmc_mips24k.h Add support for hwpmc(4) on the MIPS 24K, 32 bit, embedded processor. 2010-03-03 15:05:58 +00:00
hwpmc_mips.c Add support for hwpmc(4) on the MIPS 24K, 32 bit, embedded processor. 2010-03-03 15:05:58 +00:00
hwpmc_mod.c Commit the support for removing cpumask_t and replacing it directly with 2011-05-05 14:39:14 +00:00
hwpmc_pentium.c
hwpmc_pentium.h
hwpmc_piv.c
hwpmc_piv.h
hwpmc_powerpc.c
hwpmc_ppro.c
hwpmc_ppro.h
hwpmc_sparc64.c
hwpmc_tsc.c
hwpmc_tsc.h
hwpmc_uncore.c - Support for uncore counting events: one fixed PMC with the uncore 2010-04-02 13:23:49 +00:00
hwpmc_uncore.h - Support for uncore counting events: one fixed PMC with the uncore 2010-04-02 13:23:49 +00:00
hwpmc_x86.c Use a better check for a valid kernel stack address when capturing 2009-12-03 14:59:42 +00:00
hwpmc_xscale.c Intel XScale hwpmc(4) support. 2009-12-23 23:16:54 +00:00
hwpmc_xscale.h Intel XScale hwpmc(4) support. 2009-12-23 23:16:54 +00:00
pmc_events.h Fix two aliases that had the same name but were pointing to different 2010-10-04 17:22:18 +00:00