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

Function cap_check_failed_notcapable

freebsd/kern/sys_capability.c:182–191  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

180}
181
182int
183cap_check_failed_notcapable(const cap_rights_t *havep, const cap_rights_t *needp)
184{
185
186#ifdef KTRACE
187 if (KTRPOINT(curthread, KTR_CAPFAIL))
188 ktrcapfail(CAPFAIL_NOTCAPABLE, needp, havep);
189#endif
190 return (ENOTCAPABLE);
191}
192
193/*
194 * Convert capability rights into VM access flags.

Callers 1

cap_check_inlineFunction · 0.85

Calls 1

ktrcapfailFunction · 0.85

Tested by

no test coverage detected