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

Function lomac_cred_check_visible

freebsd/security/mac_lomac/mac_lomac.c:974–990  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

972}
973
974static int
975lomac_cred_check_visible(struct ucred *cr1, struct ucred *cr2)
976{
977 struct mac_lomac *subj, *obj;
978
979 if (!lomac_enabled)
980 return (0);
981
982 subj = SLOT(cr1->cr_label);
983 obj = SLOT(cr2->cr_label);
984
985 /* XXX: range */
986 if (!lomac_dominate_single(obj, subj))
987 return (ESRCH);
988
989 return (0);
990}
991
992static void
993lomac_cred_create_init(struct ucred *cred)

Callers

nothing calls this directly

Calls 1

lomac_dominate_singleFunction · 0.85

Tested by

no test coverage detected