Home
last modified time | relevance | path

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

/freebsd/sys/sys/
H A Dcapsicum.h393 const cap_rights_t *needp);
396 cap_check_inline(const cap_rights_t *havep, const cap_rights_t *needp) in cap_check_inline() argument
399 if (__predict_false(!cap_rights_contains(havep, needp))) in cap_check_inline()
400 return (cap_check_failed_notcapable(havep, needp)); in cap_check_inline()
405 cap_check_inline_transient(const cap_rights_t *havep, const cap_rights_t *needp) in cap_check_inline_transient() argument
408 if (__predict_false(!cap_rights_contains(havep, needp))) in cap_check_inline_transient()
437 int cap_check(const cap_rights_t *havep, const cap_rights_t *needp);
/freebsd/sys/kern/
H A Dsys_capability.c156 _cap_check(const cap_rights_t *havep, const cap_rights_t *needp, in _cap_check() argument
159 const cap_rights_t rights[] = { *needp, *havep }; in _cap_check()
161 if (!cap_rights_contains(havep, needp)) { in _cap_check()
173 cap_check(const cap_rights_t *havep, const cap_rights_t *needp) in cap_check() argument
176 return (_cap_check(havep, needp, CAPFAIL_NOTCAPABLE)); in cap_check()
180 cap_check_failed_notcapable(const cap_rights_t *havep, const cap_rights_t *needp) in cap_check_failed_notcapable() argument
182 const cap_rights_t rights[] = { *needp, *havep }; in cap_check_failed_notcapable()