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

Function mac_proc_check_debug

freebsd/security/mac/mac_process.c:376–387  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

374MAC_CHECK_PROBE_DEFINE2(proc_check_debug, "struct ucred *", "struct proc *");
375
376int
377mac_proc_check_debug(struct ucred *cred, struct proc *p)
378{
379 int error;
380
381 PROC_LOCK_ASSERT(p, MA_OWNED);
382
383 MAC_POLICY_CHECK_NOSLEEP(proc_check_debug, cred, p);
384 MAC_CHECK_PROBE2(proc_check_debug, error, cred, p);
385
386 return (error);
387}
388
389MAC_CHECK_PROBE_DEFINE2(proc_check_sched, "struct ucred *", "struct proc *");
390

Callers 1

p_candebugFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected