Home
last modified time | relevance | path

Searched refs:shp (Results 1 – 3 of 3) sorted by relevance

/security/
Dsecurity.c1208 int security_shm_alloc(struct shmid_kernel *shp) in security_shm_alloc() argument
1210 return call_int_hook(shm_alloc_security, 0, shp); in security_shm_alloc()
1213 void security_shm_free(struct shmid_kernel *shp) in security_shm_free() argument
1215 call_void_hook(shm_free_security, shp); in security_shm_free()
1218 int security_shm_associate(struct shmid_kernel *shp, int shmflg) in security_shm_associate() argument
1220 return call_int_hook(shm_associate, 0, shp, shmflg); in security_shm_associate()
1223 int security_shm_shmctl(struct shmid_kernel *shp, int cmd) in security_shm_shmctl() argument
1225 return call_int_hook(shm_shmctl, 0, shp, cmd); in security_shm_shmctl()
1228 int security_shm_shmat(struct shmid_kernel *shp, char __user *shmaddr, int shmflg) in security_shm_shmat() argument
1230 return call_int_hook(shm_shmat, 0, shp, shmaddr, shmflg); in security_shm_shmat()
/security/smack/
Dsmack_lsm.c2951 static struct smack_known *smack_of_shm(struct shmid_kernel *shp) in smack_of_shm() argument
2953 return (struct smack_known *)shp->shm_perm.security; in smack_of_shm()
2962 static int smack_shm_alloc_security(struct shmid_kernel *shp) in smack_shm_alloc_security() argument
2964 struct kern_ipc_perm *isp = &shp->shm_perm; in smack_shm_alloc_security()
2977 static void smack_shm_free_security(struct shmid_kernel *shp) in smack_shm_free_security() argument
2979 struct kern_ipc_perm *isp = &shp->shm_perm; in smack_shm_free_security()
2991 static int smk_curacc_shm(struct shmid_kernel *shp, int access) in smk_curacc_shm() argument
2993 struct smack_known *ssp = smack_of_shm(shp); in smk_curacc_shm()
2999 ad.a.u.ipc_id = shp->shm_perm.id; in smk_curacc_shm()
3013 static int smack_shm_associate(struct shmid_kernel *shp, int shmflg) in smack_shm_associate() argument
[all …]
/security/selinux/
Dhooks.c5715 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()
[all …]