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

Function mac_proc_check_sched

freebsd/security/mac/mac_process.c:391–402  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

389MAC_CHECK_PROBE_DEFINE2(proc_check_sched, "struct ucred *", "struct proc *");
390
391int
392mac_proc_check_sched(struct ucred *cred, struct proc *p)
393{
394 int error;
395
396 PROC_LOCK_ASSERT(p, MA_OWNED);
397
398 MAC_POLICY_CHECK_NOSLEEP(proc_check_sched, cred, p);
399 MAC_CHECK_PROBE2(proc_check_sched, error, cred, p);
400
401 return (error);
402}
403
404MAC_CHECK_PROBE_DEFINE3(proc_check_signal, "struct ucred *", "struct proc *",
405 "int");

Callers 1

p_canschedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected