MCPcopy Create free account
hub / github.com/F-Stack/f-stack / cap_check

Function cap_check

freebsd/kern/sys_capability.c:175–180  ·  view source on GitHub ↗

* Test whether a capability grants the requested rights. */

Source from the content-addressed store, hash-verified

173 * Test whether a capability grants the requested rights.
174 */
175int
176cap_check(const cap_rights_t *havep, const cap_rights_t *needp)
177{
178
179 return (_cap_check(havep, needp, CAPFAIL_NOTCAPABLE));
180}
181
182int
183cap_check_failed_notcapable(const cap_rights_t *havep, const cap_rights_t *needp)

Callers 3

kern_kmq_notifyFunction · 0.85
fget_cap_lockedFunction · 0.85
vfs_syscalls.cFile · 0.85

Calls 1

_cap_checkFunction · 0.85

Tested by

no test coverage detected