Lines Matching refs:shp
2951 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
3018 return smk_curacc_shm(shp, may); in smack_shm_associate()
3028 static int smack_shm_shmctl(struct shmid_kernel *shp, int cmd) in smack_shm_shmctl() argument
3052 return smk_curacc_shm(shp, may); in smack_shm_shmctl()
3063 static int smack_shm_shmat(struct shmid_kernel *shp, char __user *shmaddr, in smack_shm_shmat() argument
3069 return smk_curacc_shm(shp, may); in smack_shm_shmat()