[alsa-devel] snd_hwdep_open() as non-root user

Clemens Ladisch clemens at ladisch.de
Thu Oct 4 14:50:10 CEST 2012


Rafal Powierski wrote:
> I would like to access pin verb hda interface using snd_hwdep_open() function.
> It works fine if I run as root.
> I hope there is a way to configure my kubuntu so I can do it as non-root user (e.g. debugging)
> so far, I have been trying changing access flags for devices in /dev/snd/ directory to crwxrwxrwx no plus character.
> It did not change my privileges for snd_hwdep_open() -  still returns –13.

sound/pci/hda/hda_hwdep.c says:

static int hda_hwdep_open(struct snd_hwdep *hw, struct file *file)
{
#ifndef CONFIG_SND_DEBUG_VERBOSE
	if (!capable(CAP_SYS_RAWIO))
		return -EACCES;
#endif
	return 0;
}


Regards,
Clemens


More information about the Alsa-devel mailing list