Lines Matching defs:shp
3933 * @shp: sysv ipc permission structure
3935 * Allocate and attach a security structure to the @shp security field. The
3940 int security_shm_alloc(struct kern_ipc_perm *shp)
3942 int rc = lsm_ipc_alloc(shp);
3946 rc = call_int_hook(shm_alloc_security, shp);
3948 security_shm_free(shp);
3954 * @shp: sysv ipc permission structure
3958 void security_shm_free(struct kern_ipc_perm *shp)
3960 call_void_hook(shm_free_security, shp);
3961 kfree(shp->security);
3962 shp->security = NULL;
3967 * @shp: sysv ipc permission structure
3977 int security_shm_associate(struct kern_ipc_perm *shp, int shmflg)
3979 return call_int_hook(shm_associate, shp, shmflg);
3984 * @shp: sysv ipc permission structure
3988 * to be performed on the shared memory region with permissions in @shp.
3992 int security_shm_shmctl(struct kern_ipc_perm *shp, int cmd)
3994 return call_int_hook(shm_shmctl, shp, cmd);
3999 * @shp: sysv ipc permission structure
4004 * shared memory segment with permissions @shp to the data segment of the
4009 int security_shm_shmat(struct kern_ipc_perm *shp,
4012 return call_int_hook(shm_shmat, shp, shmaddr, shmflg);