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

Function mac_ipq_init

freebsd/security/mac/mac_inet.c:133–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131}
132
133int
134mac_ipq_init(struct ipq *q, int flag)
135{
136
137 if (mac_labeled & MPC_OBJECT_IPQ) {
138 q->ipq_label = mac_ipq_label_alloc(flag);
139 if (q->ipq_label == NULL)
140 return (ENOMEM);
141 } else
142 q->ipq_label = NULL;
143 return (0);
144}
145
146static void
147mac_inpcb_label_free(struct label *label)

Callers 1

ip_reassFunction · 0.85

Calls 1

mac_ipq_label_allocFunction · 0.85

Tested by

no test coverage detected