[Bug 771474] Re: udev name/symlink rules give permission denied error
dino99
771474 at bugs.launchpad.net
Fri Apr 15 09:49:59 UTC 2016
Closing that outdated report as EOL has been reached long time ago
** Changed in: udev (Ubuntu)
Status: New => Invalid
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to udev in Ubuntu.
https://bugs.launchpad.net/bugs/771474
Title:
udev name/symlink rules give permission denied error
Status in udev package in Ubuntu:
Invalid
Bug description:
Binary package hint: udev
I was just trying to create a rule to create a /dev/lirc symlink from the appropriate
/dev/input/event* but kept running into permissioning issues.
The following udev rules (both give the same result) when placed in
/etc/udev/rules.d/10-local.rules:
KERNEL=="event*",ATTRS{vendor}=="0x14f1",SYMLINK+="lirc"
#KERNEL=="event*",ATTRS{vendor}=="0x14f1",NAME="lirc"
...should produce a symbolic link at /dev/lirc to the pertinent /dev/input/event* (but don't) when I run:
$ sudo restart udev
...but they do produce "permission denied" errors when I run:
$ udevadm test $(udevadm info -q path -n /dev/input/event3)
(assuming it's event3 today)
...however running as root creates the symlink just fine:
$ sudo udevadm test $(udevadm info -q path -n /dev/input/event3)
They are however picked up as the same udevadm output reads:
"udev_rules_apply_to_event: LINK 'lirc' /etc/udev/rules.d/10-local.rules:1"
BTW, This rule should do effectively the same thing but fails silently, presumably for the same permissioning reason:
KERNEL=="event*",ATTRS{vendor}=="0x14f1",RUN+="sudo ln -fs /dev/input/%k /dev/lirc"
I've applied a workaround by hacking /etc/init.d/lirc as per
http://www.mythtv.org/wiki/LIRC#Troubleshooting but it's frightfully
inelegant. Would like to get the udev rule working
ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: udev 151-12.3
ProcVersionSignature: Ubuntu 2.6.32-30.59-generic 2.6.32.29+drm33.13
Uname: Linux 2.6.32-30-generic x86_64
Architecture: amd64
CustomUdevRuleFiles: 10-local.rules 41-mythtv-permissions.rules
Date: Wed Apr 27 06:25:21 2011
MachineType: Dell Inc. OptiPlex 755
ProcCmdLine: root=UUID=629c7c4e-7711-45b6-8eaf-8521e3f7124e ro quiet splash
ProcEnviron:
PATH=(custom, user)
LANG=en_AU.utf8
SHELL=/bin/bash
SourcePackage: udev
dmi.bios.date: 08/04/2008
dmi.bios.vendor: Dell Inc.
dmi.bios.version: A11
dmi.board.name: 0DR845
dmi.board.vendor: Dell Inc.
dmi.chassis.type: 3
dmi.chassis.vendor: Dell Inc.
dmi.modalias: dmi:bvnDellInc.:bvrA11:bd08/04/2008:svnDellInc.:pnOptiPlex755:pvr:rvnDellInc.:rn0DR845:rvr:cvnDellInc.:ct3:cvr:
dmi.product.name: OptiPlex 755
dmi.sys.vendor: Dell Inc.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/udev/+bug/771474/+subscriptions
More information about the foundations-bugs
mailing list