Home
last modified time | relevance | path

Searched refs:havep (Results 1 – 2 of 2) sorted by relevance

/f-stack/freebsd/sys/
H A Dcapsicum.h393 int cap_check_failed_notcapable(const cap_rights_t *havep,
397 cap_check_inline(const cap_rights_t *havep, const cap_rights_t *needp) in cap_check_inline() argument
400 if (__predict_false(!cap_rights_contains(havep, needp))) in cap_check_inline()
401 return (cap_check_failed_notcapable(havep, needp)); in cap_check_inline()
406 cap_check_inline_transient(const cap_rights_t *havep, const cap_rights_t *needp) in cap_check_inline_transient() argument
409 if (__predict_false(!cap_rights_contains(havep, needp))) in cap_check_inline_transient()
431 int cap_check(const cap_rights_t *havep, const cap_rights_t *needp);
435 vm_prot_t cap_rights_to_vmprot(const cap_rights_t *havep);
/f-stack/freebsd/kern/
H A Dsys_capability.c158 _cap_check(const cap_rights_t *havep, const cap_rights_t *needp, in _cap_check() argument
162 if (!cap_rights_contains(havep, needp)) { in _cap_check()
165 ktrcapfail(type, needp, havep); in _cap_check()
176 cap_check(const cap_rights_t *havep, const cap_rights_t *needp) in cap_check() argument
179 return (_cap_check(havep, needp, CAPFAIL_NOTCAPABLE)); in cap_check()
183 cap_check_failed_notcapable(const cap_rights_t *havep, const cap_rights_t *needp) in cap_check_failed_notcapable() argument
188 ktrcapfail(CAPFAIL_NOTCAPABLE, needp, havep); in cap_check_failed_notcapable()
197 cap_rights_to_vmprot(const cap_rights_t *havep) in cap_rights_to_vmprot() argument
202 if (cap_rights_is_set(havep, CAP_MMAP_R)) in cap_rights_to_vmprot()
204 if (cap_rights_is_set(havep, CAP_MMAP_W)) in cap_rights_to_vmprot()
[all …]