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

Function mac_cred_init

freebsd/security/mac/mac_cred.c:88–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86}
87
88void
89mac_cred_init(struct ucred *cred)
90{
91
92 if (mac_labeled & MPC_OBJECT_CRED)
93 cred->cr_label = mac_cred_label_alloc();
94 else
95 cred->cr_label = NULL;
96}
97
98void
99mac_cred_label_free(struct label *label)

Callers 1

crgetFunction · 0.85

Calls 1

mac_cred_label_allocFunction · 0.85

Tested by

no test coverage detected