-
Notifications
You must be signed in to change notification settings - Fork 155
Update udev rule #285
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Update udev rule #285
Conversation
Any rule with the GROUP= setting with a non-system group gets ignored since systemd 258, uaccess handle handles access so its redundant. For uaccess the udev developers recommend applying it on add and change actions but not on remove, adapted the rule to follow this.
|
I believe that this was written primarily to run on Raspberry Pi OS, where |
|
I should have specified, with "system group" I was referring to what systemd-userdb describes as a system group which differ from regular groups. While Raspberry Pi OS doesn't have the version of udev that depends on userdb and at least Ubuntu ship with configurations that makes plugdev a proper system group this is not a trivial setup to replicate on other distros where the rule would still be useful. The rule already applies uaccess, which provides user access regardless of group, so there is no real point in assigning it to the plugdev group or explicitly setting the mode, which udev will manage on its own. |
|
I know nothing about |
|
Unsure about The default permissions for a Pico on my system seems to be |
|
@Jan200101 Is your issue that the file doesn’t work for you, or is it just that you think ideally it should be changed? systemd v258 was only released a few months ago, so most OSes (RPiOS bookworm and trixie for example) will not be running it, and users may still be relying on the group setting. |
|
Both, I use Fedora so I got systemd v258 fairly quickly and the chance to udev stopped the rule from working without further modification to my system. The rule changes I propose should work universally and have been tested against Raspberry Pi OS Bookworm and Fedora 43. |
Which part of this PR is required to get it working correctly for you? From reading the systemd 258 release notes I can't see why keeping the |
On distros without plugdev as a default group (anything not Debian based, though they also consider removing it) the user will need to add it themselves otherwise they run into Lots of people (based on public recomendations) create a plugdev group using One would have to either modify the group into becoming a system group or delete and recreate it to get this setup working. By not depending on a specific group and simply making use of the uaccess mechanism the rule becomes distro agnostic* and will even continue to work once (if) debian deprecates the group. * did not test with eudev but the rule should work on any up to date distro since 2014
I see no harm in removing that, upstream suggests keeping it to only apply the rule when a device is added or changed. |
Any rule with the GROUP= setting with a non-system group gets ignored since systemd 258, uaccess handle handles access so its redundant.
For uaccess the udev developers recommend applying it on add and change actions but not on remove, adapted the rule to follow this.
Tested on Fedora 43