| 319 | } |
| 320 | |
| 321 | static int |
| 322 | shm_prison_cansee(struct prison *rpr, struct shmid_kernel *shmseg) |
| 323 | { |
| 324 | |
| 325 | if (shmseg->cred == NULL || |
| 326 | !(rpr == shmseg->cred->cr_prison || |
| 327 | prison_ischild(rpr, shmseg->cred->cr_prison))) |
| 328 | return (EINVAL); |
| 329 | return (0); |
| 330 | } |
| 331 | |
| 332 | static int |
| 333 | kern_shmdt_locked(struct thread *td, const void *shmaddr) |
no test coverage detected