/* Returns 0 if current has the requested access, error code otherwise  */
static int smack_sem_associate(struct sem_array *sma, int semflg)
/* Returns 0 if current has the requested access, error code otherwise  */
static int smack_sem_associate(struct sem_array *sma, int semflg)
{
	int may;
	may = smack_flags_to_may(semflg);
	return smk_curacc_sem(sma, may);
}