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

Function mac_inpcb_init

freebsd/security/mac/mac_inet.c:98–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96}
97
98int
99mac_inpcb_init(struct inpcb *inp, int flag)
100{
101
102 if (mac_labeled & MPC_OBJECT_INPCB) {
103 inp->inp_label = mac_inpcb_label_alloc(flag);
104 if (inp->inp_label == NULL)
105 return (ENOMEM);
106 } else
107 inp->inp_label = NULL;
108 return (0);
109}
110
111static struct label *
112mac_ipq_label_alloc(int flag)

Callers 1

in_pcballocFunction · 0.85

Calls 1

mac_inpcb_label_allocFunction · 0.85

Tested by

no test coverage detected