Lines Matching defs:shp
3641 * @shp: sysv ipc permission structure
3643 * Allocate and attach a security structure to the @shp security field. The
3648 int security_shm_alloc(struct kern_ipc_perm *shp)
3650 int rc = lsm_ipc_alloc(shp);
3654 rc = call_int_hook(shm_alloc_security, 0, shp);
3656 security_shm_free(shp);
3662 * @shp: sysv ipc permission structure
3666 void security_shm_free(struct kern_ipc_perm *shp)
3668 call_void_hook(shm_free_security, shp);
3669 kfree(shp->security);
3670 shp->security = NULL;
3675 * @shp: sysv ipc permission structure
3685 int security_shm_associate(struct kern_ipc_perm *shp, int shmflg)
3687 return call_int_hook(shm_associate, 0, shp, shmflg);
3692 * @shp: sysv ipc permission structure
3696 * to be performed on the shared memory region with permissions in @shp.
3700 int security_shm_shmctl(struct kern_ipc_perm *shp, int cmd)
3702 return call_int_hook(shm_shmctl, 0, shp, cmd);
3707 * @shp: sysv ipc permission structure
3712 * shared memory segment with permissions @shp to the data segment of the
3717 int security_shm_shmat(struct kern_ipc_perm *shp,
3720 return call_int_hook(shm_shmat, 0, shp, shmaddr, shmflg);