| 204 | "struct msg *"); |
| 205 | |
| 206 | int |
| 207 | mac_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 | |
| 218 | MAC_CHECK_PROBE_DEFINE2(sysvmsq_check_msqget, "struct ucred *", |
| 219 | "struct msqid_kernel *"); |