fix the order of the udev rule so that TAG+="uaccess" works#199
fix the order of the udev rule so that TAG+="uaccess" works#199zombiepigdragon wants to merge 1 commit intoraspberrypi:developfrom
Conversation
The current udev rule name will not actually apply the uaccess tag in time for it to have the intended effect of setting the permissions to allow the local seated user to access the device. To do this, the rule must have a prefix <73 due to "73-seat-late.rules" being the rule that actually uses the tag to set the appropriate permissions. This change moves the rule to a position where it will function as originally intended.
|
I did just notice that I missed #167 while troubleshooting the issue, and I would like to point out that in my case rebooting was not sufficient to fix the issue (I did try it). However, once I had renamed the file to change its priority, the change took affect without a further reboot. |
|
Thanks for this - could you rename it to |
If these udev rules files serve a similar purpose, should we try to make them more similar to each other, or make them identical and give them the same name? Or are they deliberately different because they're doing different things? |
|
I think they serve different purposes - the sys-mods one is general for all Raspberry Pi devices (debug probe, picos, etc) so it doesn't need to be updated when new ones are released; whereas the specific rules in picotool (and openocd) are only targeting the specific devices those tools interact with, and provide a useful base for people to modify further (eg to support white-labelled Pico 2s with different VIDs/PIDs) |
Adding the instructions is useful for linking to the file from elsewhere Order fix supercedes #199
|
Superceded by #230 |
Adding the instructions is useful for linking to the file from elsewhere Order fix supercedes #199
Adding the instructions is useful for linking to the file from elsewhere Order fix supercedes #199
The current udev rule name will not actually apply the uaccess tag in time for it to have the intended effect of setting the permissions to allow the local seated user to access the device. To do this, the rule must have a prefix <73 due to 73-seat-late.rules being the rule that actually uses the tag to set the appropriate permissions. This change moves the rule to a position where it will function as originally intended.
I suspect that the reason this was not noticed until now is because if the plugdev group is set up, it would permit access even without a functioning uaccess tag. At least on my desktop system (Fedora Linux) this group does not exist by default, and so with neither the group nor uaccess being set correctly the rules had no affect until the file was renamed as shown.