Jonathan Anderson 9acdfe6549 Rework _fget to accept capability parameters.
This new version of _fget() requires new parameters:
- cap_rights_t needrights
    the rights that we expect the capability's rights mask to include
    (e.g. CAP_READ if we are going to read from the file)

- cap_rights_t *haverights
    used to return the capability's rights mask (ignored if NULL)

- u_char *maxprotp
    the maximum mmap() rights (e.g. VM_PROT_READ) that can be permitted
    (only used if we are going to mmap the file; ignored if NULL)

- int fget_flags
    FGET_GETCAP if we want to return the capability itself, rather than
    the underlying object which it wraps

Approved by: mentor (rwatson), re (Capsicum blanket)
Sponsored by: Google Inc
2011-07-05 13:45:10 +00:00
..
MFC
2011-07-04 11:13:00 +00:00
MFC
2011-06-28 14:40:17 +00:00
MFC
2011-07-04 11:13:00 +00:00
MFC
2011-07-04 11:13:00 +00:00
MFC
2011-07-04 11:13:00 +00:00
2011-07-04 20:50:09 +00:00
MFC
2011-07-04 11:13:00 +00:00