Lines Matching refs:shp
2895 static struct smack_known *smack_of_shm(struct shmid_kernel *shp) in smack_of_shm() argument
2897 return (struct smack_known *)shp->shm_perm.security; in smack_of_shm()
2906 static int smack_shm_alloc_security(struct shmid_kernel *shp) in smack_shm_alloc_security() argument
2908 struct kern_ipc_perm *isp = &shp->shm_perm; in smack_shm_alloc_security()
2921 static void smack_shm_free_security(struct shmid_kernel *shp) in smack_shm_free_security() argument
2923 struct kern_ipc_perm *isp = &shp->shm_perm; in smack_shm_free_security()
2935 static int smk_curacc_shm(struct shmid_kernel *shp, int access) in smk_curacc_shm() argument
2937 struct smack_known *ssp = smack_of_shm(shp); in smk_curacc_shm()
2943 ad.a.u.ipc_id = shp->shm_perm.id; in smk_curacc_shm()
2957 static int smack_shm_associate(struct shmid_kernel *shp, int shmflg) in smack_shm_associate() argument
2962 return smk_curacc_shm(shp, may); in smack_shm_associate()
2972 static int smack_shm_shmctl(struct shmid_kernel *shp, int cmd) in smack_shm_shmctl() argument
2996 return smk_curacc_shm(shp, may); in smack_shm_shmctl()
3007 static int smack_shm_shmat(struct shmid_kernel *shp, char __user *shmaddr, in smack_shm_shmat() argument
3013 return smk_curacc_shm(shp, may); in smack_shm_shmat()