[systemd-devel] logind: support of shared devices

Mantas Mikul─Śnas grawity at gmail.com
Wed Jan 7 12:02:17 PST 2015


On Wed, Jan 7, 2015 at 9:45 PM, Oleg Samarin <osamarin68 at gmail.com> wrote:

> > > After adding the simple udev rule:
> > >
> > > ----------------------------------------------
> > > KERNEL=="seq", SUBSYSTEM=="sound", TAG+="shared"
> > > ----------------------------------------------
> > >
> > > /dev/snd/seq becomes accessible from all seats.
> > >
> > > Could you resolve this patch upstream or propose another way of
> granting
> > > access to /dev/snd/seq on activating sessions?
> >
> > Why not remove the "uaccess" TAG from the device and set your own
> > permissions? Like:
> >
> > TAG-="uaccess", MODE=whatever, GROUP=something
> >
> > This way, logind will never touch the device and your statically set
> > access-rules will be applied. If you now set the group to your
> > user-group, only your user will have access to the device, regardless
> > of the seat it's on.
>
> 1. "uaccess" tag is added by another udev rule, and I do not know, what
> will happen if there are two rules in contradiction
>

All rules are applied in order, that's why the filenames are numbered. If
70-foo adds a tag, 90-bar can remove it.

-- 
Mantas Mikul─Śnas <grawity at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20150107/34957bf6/attachment.html>


More information about the systemd-devel mailing list