Lines Matching refs:shp
3425 * @shp: sysv ipc permission structure
3427 * Allocate and attach a security structure to the @shp security field. The
3432 int security_shm_alloc(struct kern_ipc_perm *shp)
3434 int rc = lsm_ipc_alloc(shp);
3438 rc = call_int_hook(shm_alloc_security, shp);
3440 security_shm_free(shp);
3446 * @shp: sysv ipc permission structure
3450 void security_shm_free(struct kern_ipc_perm *shp)
3452 call_void_hook(shm_free_security, shp);
3453 kfree(shp->security);
3454 shp->security = NULL;
3459 * @shp: sysv ipc permission structure
3469 int security_shm_associate(struct kern_ipc_perm *shp, int shmflg)
3471 return call_int_hook(shm_associate, shp, shmflg);
3476 * @shp: sysv ipc permission structure
3480 * to be performed on the shared memory region with permissions in @shp.
3484 int security_shm_shmctl(struct kern_ipc_perm *shp, int cmd)
3486 return call_int_hook(shm_shmctl, shp, cmd);
3491 * @shp: sysv ipc permission structure
3496 * shared memory segment with permissions @shp to the data segment of the
3501 int security_shm_shmat(struct kern_ipc_perm *shp,
3504 return call_int_hook(shm_shmat, shp, shmaddr, shmflg);