Lines Matching refs:shp
2620 static struct smack_known *smack_of_shm(struct shmid_kernel *shp) in smack_of_shm() argument
2622 return (struct smack_known *)shp->shm_perm.security; in smack_of_shm()
2631 static int smack_shm_alloc_security(struct shmid_kernel *shp) in smack_shm_alloc_security() argument
2633 struct kern_ipc_perm *isp = &shp->shm_perm; in smack_shm_alloc_security()
2646 static void smack_shm_free_security(struct shmid_kernel *shp) in smack_shm_free_security() argument
2648 struct kern_ipc_perm *isp = &shp->shm_perm; in smack_shm_free_security()
2660 static int smk_curacc_shm(struct shmid_kernel *shp, int access) in smk_curacc_shm() argument
2662 struct smack_known *ssp = smack_of_shm(shp); in smk_curacc_shm()
2668 ad.a.u.ipc_id = shp->shm_perm.id; in smk_curacc_shm()
2682 static int smack_shm_associate(struct shmid_kernel *shp, int shmflg) in smack_shm_associate() argument
2687 return smk_curacc_shm(shp, may); in smack_shm_associate()
2697 static int smack_shm_shmctl(struct shmid_kernel *shp, int cmd) in smack_shm_shmctl() argument
2721 return smk_curacc_shm(shp, may); in smack_shm_shmctl()
2732 static int smack_shm_shmat(struct shmid_kernel *shp, char __user *shmaddr, in smack_shm_shmat() argument
2738 return smk_curacc_shm(shp, may); in smack_shm_shmat()