Skip to content
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

[rfc] wpa_supplicant: use capabilities in service to run as non-root #53219

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

dkwo
Copy link
Contributor

@dkwo dkwo commented Nov 25, 2024

The capabilities are the ones recommended in upstream README. They recommend to set them on the executable, but it seems safer to set them in the service.

  • I tested the changes in this PR: yes, but only using the runit service. I.e., did not test other potential consumers of wpa_supplicant, like network manager or wpa_cli.
  • I built this PR locally for my native architecture, (x86_64-glibc)

Added a patch to the external file function, taken from nixos.

NB: Had to chown -R _wpas:_wpas /etc/wpa_supplicant, as well as edit the conf to change control group.

@dkwo dkwo changed the title [rfc] wpa_supplicant: use capabilities in the service to run as non-root [rfc] wpa_supplicant: use capabilities in service to run as non-root Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant