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

Function mac_proc_check_wait

freebsd/security/mac/mac_process.c:422–433  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

420MAC_CHECK_PROBE_DEFINE2(proc_check_wait, "struct ucred *", "struct proc *");
421
422int
423mac_proc_check_wait(struct ucred *cred, struct proc *p)
424{
425 int error;
426
427 PROC_LOCK_ASSERT(p, MA_OWNED);
428
429 MAC_POLICY_CHECK_NOSLEEP(proc_check_wait, cred, p);
430 MAC_CHECK_PROBE2(proc_check_wait, error, cred, p);
431
432 return (error);
433}

Callers 1

p_canwaitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected