All of lore.kernel.org
 help / color / mirror / Atom feed
From: Clemens Ladisch <clemens@ladisch.de>
To: Rafal Powierski <powierski@mediascore.de>
Cc: alsa-devel@alsa-project.org
Subject: Re: snd_hwdep_open() as non-root user
Date: Thu, 04 Oct 2012 14:50:10 +0200	[thread overview]
Message-ID: <506D8602.3050007@ladisch.de> (raw)
In-Reply-To: <44F73A434CA44E548BE58635A97F56C9@mediascore.mediascore.de>

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@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

  reply	other threads:[~2012-10-04 12:50 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-04 11:01 snd_hwdep_open() as non-root user Rafal Powierski
2012-10-04 12:50 ` Clemens Ladisch [this message]
2012-10-04 16:06   ` Rafal Powierski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=506D8602.3050007@ladisch.de \
    --to=clemens@ladisch.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=powierski@mediascore.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.