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

Function mls_cred_create_init

freebsd/security/mac_mls/mac_mls.c:869–879  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

867}
868
869static void
870mls_cred_create_init(struct ucred *cred)
871{
872 struct mac_mls *dest;
873
874 dest = SLOT(cred->cr_label);
875
876 mls_set_effective(dest, MAC_MLS_TYPE_LOW, 0, NULL);
877 mls_set_range(dest, MAC_MLS_TYPE_LOW, 0, NULL, MAC_MLS_TYPE_HIGH, 0,
878 NULL);
879}
880
881static void
882mls_cred_create_swapper(struct ucred *cred)

Callers

nothing calls this directly

Calls 2

mls_set_effectiveFunction · 0.85
mls_set_rangeFunction · 0.85

Tested by

no test coverage detected