Home
last modified time | relevance | path

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

/security/
Dsecurity.c1233 int security_sem_alloc(struct sem_array *sma) in security_sem_alloc() argument
1235 return call_int_hook(sem_alloc_security, 0, sma); in security_sem_alloc()
1238 void security_sem_free(struct sem_array *sma) in security_sem_free() argument
1240 call_void_hook(sem_free_security, sma); in security_sem_free()
1243 int security_sem_associate(struct sem_array *sma, int semflg) in security_sem_associate() argument
1245 return call_int_hook(sem_associate, 0, sma, semflg); in security_sem_associate()
1248 int security_sem_semctl(struct sem_array *sma, int cmd) in security_sem_semctl() argument
1250 return call_int_hook(sem_semctl, 0, sma, cmd); in security_sem_semctl()
1253 int security_sem_semop(struct sem_array *sma, struct sembuf *sops, in security_sem_semop() argument
1256 return call_int_hook(sem_semop, 0, sma, sops, nsops, alter); in security_sem_semop()
/security/smack/
Dsmack_lsm.c3078 static struct smack_known *smack_of_sem(struct sem_array *sma) in smack_of_sem() argument
3080 return (struct smack_known *)sma->sem_perm.security; in smack_of_sem()
3089 static int smack_sem_alloc_security(struct sem_array *sma) in smack_sem_alloc_security() argument
3091 struct kern_ipc_perm *isp = &sma->sem_perm; in smack_sem_alloc_security()
3104 static void smack_sem_free_security(struct sem_array *sma) in smack_sem_free_security() argument
3106 struct kern_ipc_perm *isp = &sma->sem_perm; in smack_sem_free_security()
3118 static int smk_curacc_sem(struct sem_array *sma, int access) in smk_curacc_sem() argument
3120 struct smack_known *ssp = smack_of_sem(sma); in smk_curacc_sem()
3126 ad.a.u.ipc_id = sma->sem_perm.id; in smk_curacc_sem()
3140 static int smack_sem_associate(struct sem_array *sma, int semflg) in smack_sem_associate() argument
[all …]
/security/selinux/
Dhooks.c5808 static int selinux_sem_alloc_security(struct sem_array *sma) in selinux_sem_alloc_security() argument
5815 rc = ipc_alloc_security(&sma->sem_perm, SECCLASS_SEM); in selinux_sem_alloc_security()
5819 isec = sma->sem_perm.security; in selinux_sem_alloc_security()
5822 ad.u.ipc_id = sma->sem_perm.key; in selinux_sem_alloc_security()
5827 ipc_free_security(&sma->sem_perm); in selinux_sem_alloc_security()
5833 static void selinux_sem_free_security(struct sem_array *sma) in selinux_sem_free_security() argument
5835 ipc_free_security(&sma->sem_perm); in selinux_sem_free_security()
5838 static int selinux_sem_associate(struct sem_array *sma, int semflg) in selinux_sem_associate() argument
5844 isec = sma->sem_perm.security; in selinux_sem_associate()
5847 ad.u.ipc_id = sma->sem_perm.key; in selinux_sem_associate()
[all …]