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

Function mac_sysvmsq_check_msgmsq

freebsd/security/mac/mac_sysv_msg.c:175–186  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

173 "struct msg *", "struct msqid_kernel *");
174
175int
176mac_sysvmsq_check_msgmsq(struct ucred *cred, struct msg *msgptr,
177 struct msqid_kernel *msqkptr)
178{
179 int error;
180
181 MAC_POLICY_CHECK_NOSLEEP(sysvmsq_check_msgmsq, cred, msgptr,
182 msgptr->label, msqkptr, msqkptr->label);
183 MAC_CHECK_PROBE3(sysvmsq_check_msgmsq, error, cred, msgptr, msqkptr);
184
185 return (error);
186}
187
188MAC_CHECK_PROBE_DEFINE2(sysvmsq_check_msgrcv, "struct ucred *",
189 "struct msg *");

Callers 1

kern_msgsndFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected