Lines Matching refs:sma
3824 * @sma: sysv ipc permission structure
3826 * Allocate and attach a security structure to the @sma security field. The
3831 int security_sem_alloc(struct kern_ipc_perm *sma)
3833 int rc = lsm_ipc_alloc(sma);
3837 rc = call_int_hook(sem_alloc_security, sma);
3839 security_sem_free(sma);
3845 * @sma: sysv ipc permission structure
3847 * Deallocate security structure @sma->security for the semaphore.
3849 void security_sem_free(struct kern_ipc_perm *sma)
3851 call_void_hook(sem_free_security, sma);
3852 kfree(sma->security);
3853 sma->security = NULL;
3858 * @sma: sysv ipc permission structure
3867 int security_sem_associate(struct kern_ipc_perm *sma, int semflg)
3869 return call_int_hook(sem_associate, sma, semflg);
3874 * @sma: sysv ipc permission structure
3882 int security_sem_semctl(struct kern_ipc_perm *sma, int cmd)
3884 return call_int_hook(sem_semctl, sma, cmd);
3889 * @sma: sysv ipc permission structure
3899 int security_sem_semop(struct kern_ipc_perm *sma, struct sembuf *sops,
3902 return call_int_hook(sem_semop, sma, sops, nsops, alter);