Lines Matching refs:shp
5715 static int selinux_shm_alloc_security(struct shmid_kernel *shp) in selinux_shm_alloc_security() argument
5722 rc = ipc_alloc_security(&shp->shm_perm, SECCLASS_SHM); in selinux_shm_alloc_security()
5726 isec = shp->shm_perm.security; in selinux_shm_alloc_security()
5729 ad.u.ipc_id = shp->shm_perm.key; in selinux_shm_alloc_security()
5734 ipc_free_security(&shp->shm_perm); in selinux_shm_alloc_security()
5740 static void selinux_shm_free_security(struct shmid_kernel *shp) in selinux_shm_free_security() argument
5742 ipc_free_security(&shp->shm_perm); in selinux_shm_free_security()
5745 static int selinux_shm_associate(struct shmid_kernel *shp, int shmflg) in selinux_shm_associate() argument
5751 isec = shp->shm_perm.security; in selinux_shm_associate()
5754 ad.u.ipc_id = shp->shm_perm.key; in selinux_shm_associate()
5761 static int selinux_shm_shmctl(struct shmid_kernel *shp, int cmd) in selinux_shm_shmctl() argument
5790 err = ipc_has_perm(&shp->shm_perm, perms); in selinux_shm_shmctl()
5794 static int selinux_shm_shmat(struct shmid_kernel *shp, in selinux_shm_shmat() argument
5804 return ipc_has_perm(&shp->shm_perm, perms); in selinux_shm_shmat()