/* Returns 0 if current has the requested access, error code otherwise  */
static int smack_shm_shmat(struct shmid_kernel *shp, char __user *shmaddr, int shmflg)
/* Returns 0 if current has the requested access, error code otherwise  */
static int smack_shm_shmat(struct shmid_kernel *shp, char __user *shmaddr, int shmflg)
{
	int may;
	may = smack_flags_to_may(shmflg);
	return smk_curacc_shm(shp, may);
}