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

Function mac_sysvmsq_check_msgrmid

freebsd/security/mac/mac_sysv_msg.c:206–216  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

204 "struct msg *");
205
206int
207mac_sysvmsq_check_msgrmid(struct ucred *cred, struct msg *msgptr)
208{
209 int error;
210
211 MAC_POLICY_CHECK_NOSLEEP(sysvmsq_check_msgrmid, cred, msgptr,
212 msgptr->label);
213 MAC_CHECK_PROBE2(sysvmsq_check_msgrmid, error, cred, msgptr);
214
215 return (error);
216}
217
218MAC_CHECK_PROBE_DEFINE2(sysvmsq_check_msqget, "struct ucred *",
219 "struct msqid_kernel *");

Callers 1

kern_msgctlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected