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

Function mls_cred_associate_nfsd

freebsd/security/mac_mls/mac_mls.c:780–789  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

778}
779
780static void
781mls_cred_associate_nfsd(struct ucred *cred)
782{
783 struct mac_mls *label;
784
785 label = SLOT(cred->cr_label);
786 mls_set_effective(label, MAC_MLS_TYPE_LOW, 0, NULL);
787 mls_set_range(label, MAC_MLS_TYPE_LOW, 0, NULL, MAC_MLS_TYPE_HIGH, 0,
788 NULL);
789}
790
791static int
792mls_cred_check_relabel(struct ucred *cred, struct label *newlabel)

Callers

nothing calls this directly

Calls 2

mls_set_effectiveFunction · 0.85
mls_set_rangeFunction · 0.85

Tested by

no test coverage detected