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

Function lomac_cred_create_swapper

freebsd/security/mac_lomac/mac_lomac.c:1003–1012  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1001}
1002
1003static void
1004lomac_cred_create_swapper(struct ucred *cred)
1005{
1006 struct mac_lomac *dest;
1007
1008 dest = SLOT(cred->cr_label);
1009
1010 lomac_set_single(dest, MAC_LOMAC_TYPE_EQUAL, 0);
1011 lomac_set_range(dest, MAC_LOMAC_TYPE_LOW, 0, MAC_LOMAC_TYPE_HIGH, 0);
1012}
1013
1014static void
1015lomac_cred_relabel(struct ucred *cred, struct label *newlabel)

Callers

nothing calls this directly

Calls 2

lomac_set_singleFunction · 0.85
lomac_set_rangeFunction · 0.85

Tested by

no test coverage detected