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

Function lomac_proc_check_sched

freebsd/security/mac_lomac/mac_lomac.c:1857–1875  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1855}
1856
1857static int
1858lomac_proc_check_sched(struct ucred *cred, struct proc *p)
1859{
1860 struct mac_lomac *subj, *obj;
1861
1862 if (!lomac_enabled)
1863 return (0);
1864
1865 subj = SLOT(cred->cr_label);
1866 obj = SLOT(p->p_ucred->cr_label);
1867
1868 /* XXX: range checks */
1869 if (!lomac_dominate_single(obj, subj))
1870 return (ESRCH);
1871 if (!lomac_subject_dominate(subj, obj))
1872 return (EACCES);
1873
1874 return (0);
1875}
1876
1877static int
1878lomac_proc_check_signal(struct ucred *cred, struct proc *p, int signum)

Callers

nothing calls this directly

Calls 2

lomac_dominate_singleFunction · 0.85
lomac_subject_dominateFunction · 0.85

Tested by

no test coverage detected