Jonathan Anderson af098ed8e7 Add kernel functions to unwrap capabilities.
cap_funwrap() and cap_funwrap_mmap() unwrap capabilities, exposing the
underlying object. Attempting to unwrap a capability with an inadequate
rights mask (e.g. calling cap_funwrap(fp, CAP_WRITE | CAP_MMAP, &result)
on a capability whose rights mask is CAP_READ | CAP_MMAP) will result in
ENOTCAPABLE.

Unwrapping a non-capability is effectively a no-op.

These functions will be used by Capsicum-aware versions of _fget(), etc.

Approved by: mentor (rwatson), re (Capsicum blanket)
Sponsored by: Google Inc
2011-07-04 14:40:32 +00:00
..
2011-04-18 16:32:47 +00:00
MFC
2011-06-15 07:20:22 +00:00
MFC
2011-06-15 07:20:22 +00:00
2011-04-13 11:28:46 +00:00
2011-04-26 07:30:52 +00:00
2010-11-22 15:28:54 +00:00
2010-11-25 20:05:11 +00:00
2011-06-27 13:02:23 +00:00
MFC
2011-06-26 17:30:46 +00:00
2011-04-18 16:32:47 +00:00
2011-04-18 16:32:47 +00:00
2011-04-06 19:08:50 +00:00
2011-04-06 19:08:50 +00:00
2011-04-06 19:08:50 +00:00
2010-11-14 16:10:15 +00:00