Lines Matching refs:sma
3725 * @sma: sysv ipc permission structure
3727 * Allocate and attach a security structure to the @sma security field. The
3732 int security_sem_alloc(struct kern_ipc_perm *sma)
3734 int rc = lsm_ipc_alloc(sma);
3738 rc = call_int_hook(sem_alloc_security, 0, sma);
3740 security_sem_free(sma);
3746 * @sma: sysv ipc permission structure
3748 * Deallocate security structure @sma->security for the semaphore.
3750 void security_sem_free(struct kern_ipc_perm *sma)
3752 call_void_hook(sem_free_security, sma);
3753 kfree(sma->security);
3754 sma->security = NULL;
3759 * @sma: sysv ipc permission structure
3768 int security_sem_associate(struct kern_ipc_perm *sma, int semflg)
3770 return call_int_hook(sem_associate, 0, sma, semflg);
3775 * @sma: sysv ipc permission structure
3783 int security_sem_semctl(struct kern_ipc_perm *sma, int cmd)
3785 return call_int_hook(sem_semctl, 0, sma, cmd);
3790 * @sma: sysv ipc permission structure
3800 int security_sem_semop(struct kern_ipc_perm *sma, struct sembuf *sops,
3803 return call_int_hook(sem_semop, 0, sma, sops, nsops, alter);