[alsa-devel] snd_hwdep_open() as non-root user
Rafal Powierski
powierski at mediascore.de
Thu Oct 4 18:06:48 CEST 2012
Thank you Clemens,
sudo setcap cap_sys_rawio... solves the problem :)
I only need to ad it to the qt build or to the app itself.
Best Regards,
Rafal
-----Original Message-----
From: Clemens Ladisch
Sent: Thursday, October 04, 2012 2:50 PM
To: Rafal Powierski
Cc: alsa-devel at alsa-project.org
Subject: Re: [alsa-devel] snd_hwdep_open() as non-root user
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
_______________________________________________
Alsa-devel mailing list
Alsa-devel at alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
More information about the Alsa-devel
mailing list