Summary: | app-cdr/cdemu - cdemu0: Kernel I/O: failed to open control device /dev/vhba_ctl: Permission denied! | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Pavel Kozlov <pkozlov.vrn> |
Component: | Current packages | Assignee: | Michał Górny <mgorny> |
Status: | UNCONFIRMED --- | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Pavel Kozlov
2019-03-17 09:49:18 UTC
$ getfacl /dev/vhba* getfacl: Removing leading '/' from absolute path names # file: dev/vhba_ctl # owner: root # group: root user::rw- user:mgorny:rw- group::--- mask::rw- other::--- $ udevadm info /dev/vhba_ctl P: /devices/virtual/misc/vhba_ctl N: vhba_ctl L: 0 E: DEVPATH=/devices/virtual/misc/vhba_ctl E: DEVNAME=/dev/vhba_ctl E: MAJOR=10 E: MINOR=58 E: SUBSYSTEM=misc E: USEC_INITIALIZED=5177453611 E: TAGS=:seat:uaccess: I guess it's logind taking care of enabling access to currently logged in user. Don't know if there are non-logind ways to get it working out of the box. The udev rules needs to be changed to the following: KERNEL=="vhba_ctl", SUBSYSTEM=="misc", TAG+="uaccess", TAG+="udev-acl" TAG+="uaccess" is for logind while TAG+="udev-acl" is for ConsoleKit. Tested and working for me. Non logind/ConsoleKit systems can create /etc/udev/rules.d/69-vhba.rules with the following: KERNEL=="vhba_ctl", SUBSYSTEM=="misc", MODE="0660", GROUP="cdrom" and add their user to the cdrom group. Does it mean that I have to install elogind package (and start daemon) to make it work?.. Why not to add this as a dependency? The current udev rule only works when logind is available. You can install elogind but that is overkill if you don't need it for anything else. It's much simpler to add the rule from comment #3 and add your user to the cdrom group. logind is not a dependency because it's not required for cdemu to function. The udev rule is provided by the package maintainer as a courtesy to the user. Unfortunately it currently doesn't work for all users. |