| 249 | "struct ucred *", "struct shmfd *"); |
| 250 | |
| 251 | int |
| 252 | mac_posixshm_check_write(struct ucred *active_cred, struct ucred *file_cred, |
| 253 | struct shmfd *shmfd) |
| 254 | { |
| 255 | int error; |
| 256 | |
| 257 | MAC_POLICY_CHECK_NOSLEEP(posixshm_check_write, active_cred, |
| 258 | file_cred, shmfd, shmfd->shm_label); |
| 259 | MAC_CHECK_PROBE3(posixshm_check_write, error, active_cred, |
| 260 | file_cred, shmfd); |
| 261 | |
| 262 | return (error); |
| 263 | } |