-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
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
nixos/ebusd: fix device access #352743
nixos/ebusd: fix device access #352743
Conversation
abb7849
to
f17608d
Compare
This should also be backported to 24.11. Do I need to do anything for that? |
I added the label, it will be backported once merged. (You can add labels on your own if you add yourself to the maintainer list.) |
f17608d
to
e2f3298
Compare
Please fix the merge conflict. For some reason the file was reformatted as part of #322537 even though it was updated in this recent PR. |
e2f3298
to
e983d9f
Compare
I think you dropped the PrivateDevices change accidentally. |
e983d9f
to
0c1feac
Compare
When
services.ebusd.device
is set to a local device like/dev/ttyACM0
, ebusd will fail with the errordevice invalid
. This is because the module disallows all device access usingPrivateDevices
when a device is specified, instead of allowing device access.I only tested this change with an adapter that is connected via USB, but this shouldn't change the behavior of adapters connected over the network.
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.