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

Function lomac_cred_create_init

freebsd/security/mac_lomac/mac_lomac.c:992–1001  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

990}
991
992static void
993lomac_cred_create_init(struct ucred *cred)
994{
995 struct mac_lomac *dest;
996
997 dest = SLOT(cred->cr_label);
998
999 lomac_set_single(dest, MAC_LOMAC_TYPE_HIGH, 0);
1000 lomac_set_range(dest, MAC_LOMAC_TYPE_LOW, 0, MAC_LOMAC_TYPE_HIGH, 0);
1001}
1002
1003static void
1004lomac_cred_create_swapper(struct ucred *cred)

Callers

nothing calls this directly

Calls 2

lomac_set_singleFunction · 0.85
lomac_set_rangeFunction · 0.85

Tested by

no test coverage detected