Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 275021 - sys-fs/udev-141-r1 doesn't apply permission in rules to js devices
Summary: sys-fs/udev-141-r1 doesn't apply permission in rules to js devices
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High minor
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-22 06:47 UTC by Pascal Dürsteler
Modified: 2009-06-26 07:01 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pascal Dürsteler 2009-06-22 06:47:25 UTC
in udev-141-r1 (~x86)

I'm trying to get my gamepads working. First i have set GROUP="games" to the line where the joystick devices rule is but members in group games had no access to the device. A second try was to set MODE="0664" but that either helped.

(I was going the long way and rebootet after every udev change..)

I also expected this to be a problem for my dvd device but that may be another bug.

Reproducible: Always

Steps to Reproduce:
1. Put in Gamepad
2. Not propriate permissions

Actual Results:  
js* devices are having the wrong permissions.

Expected Results:  
Giving js* devices the right permissions.

Workaround: manually chmod teh device after plugging it in
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-06-22 08:05:33 UTC
Please provide more information.

What permissions do the devices have after you plugged in your gamepad? What permissions do they have after your changes?
Comment 2 Pascal Dürsteler 2009-06-23 05:30:10 UTC
crw-rw----  1 root root   13,   0 Jun 23 07:33 js0

but according to my rule, that's wrong.

cat /etc/udev/rules.d/50-udev-default.rules | grep js
KERNEL=="js[0-9]"*",		NAME="%k", MODE="0644", GROUP="games"


Comment 3 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-06-25 17:02:09 UTC
Just for information, the default location for udev's standard rules has changed a while ago. It's now /lib/udev/rules.d/ or /lib64/udev/rules.d/

(In reply to comment #2)
> 
> KERNEL=="js[0-9]"*",            NAME="%k", MODE="0644", GROUP="games"
> 

Is this exactly the way it's inside of your rules file? If yes the error should be obvious. Theres one quotation mark too much:

  KERNEL=="js[0-9]*",

should be correct.
Comment 4 Pascal Dürsteler 2009-06-26 07:01:30 UTC
I copyed the 50-default-rules from /lib beause the rules in lib had no effect on my system (after i copied it and restarted udev, the joystick hotplug created a node.. and only after i copied the rule from /lib to /etc). 

Whatever, the rule thing is awkward, i haven't seen the spare quotation mark. Now it works, i'm sorry ^_^


(In reply to comment #3)
> Just for information, the default location for udev's standard rules has
> changed a while ago. It's now /lib/udev/rules.d/ or /lib64/udev/rules.d/
> 
> (In reply to comment #2)
> > 
> > KERNEL=="js[0-9]"*",            NAME="%k", MODE="0644", GROUP="games"
> > 
> 
> Is this exactly the way it's inside of your rules file? If yes the error should
> be obvious. Theres one quotation mark too much:
> 
>   KERNEL=="js[0-9]*",
> 
> should be correct.
>