[systemd-bugs] [Bug 52227] add separate group for generic usb devices

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Jul 18 23:35:06 PDT 2012


https://bugs.freedesktop.org/show_bug.cgi?id=52227

--- Comment #4 from Kay Sievers <kay at vrfy.org> 2012-07-18 23:35:06 PDT ---
(In reply to comment #3)
> what acls do you mean exactly? the "standard" filesystem acls (as in ext4
> etc.)? never heard of it for device files.

Yeah, filesystem ACLs on device nodes in /dev.

Like this:
  $ getfacl /dev/dri/card0 
  # file: dev/dri/card0
  # owner: root
  # group: video
  user::rw-
  user:kay:rw-
  group::rw-
  mask::rw-
  other::---

> who should be assigning those acls (and/or other permissions) based on session
> state etc.?

We do this since many years, almost every distro.

> things like polkit/consolekit/whatever-kit? sorry again, never used
> it (always loved plain old udev simplicity) so i really don't know (and yes,
> i've tried to google it but didn't succeed).

It was udev-acl with ConsoleKit data, now it's all in systemd.

> please, give me some hints on what to read and/or what to search for... thank
> you!

http://cgit.freedesktop.org/systemd/systemd/tree/src/login/70-uaccess.rules

Old udev was here:
http://git.kernel.org/?p=linux/hotplug/udev.git;a=blob;f=src/extras/udev-acl/70-udev-acl.rules;h=2dac283101aee6ef75f2e1e397d6d91c3a4c92c1;hb=f13289ffdf077f75c8710e977ffe538b66885762

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the systemd-bugs mailing list