wpa_supplicant: introduce unprivileged service#55802
Conversation
|
what discussion in nixpkgs? |
|
Just fully changing the ownership of the configuration directory to the writable by the unprivileged user does not seem like its necessary. |
|
Refs: NixOS/nixpkgs#305722 and https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1031375 Would |
|
Maybe something like |
|
Indeed, this seems to be enough: I changed the service accordingly. |
|
After some trial and error, I found out that I can even lockdown the file system, giving it only access to Would it make sense to add this to the unprivileged service? |
|
Pull Requests become stale 90 days after last activity and are closed 14 days after that. If this pull request is still relevant bump it or assign it. |
|
Adding a competing service is bad UX. It creates confusion about when to use one or the other, and guarantees that at least one service is never going to be used on each installation. A service that forcibly modifies permissions or ownership of configuration files is terrible UX. No service should ever change these properties unless it only does so while creating them. Either 1) this change is worth making, and we dice a migration with a single service; or 2) the existing single service can provide a configurable option to run as an unprivileged user. |
|
There is a bug in wpa_cli that prevents it from communicating with the daemon, if this is running as non-root: I think we should patch it, by removing the corresponding ifdef android. |
|
I imported a patch from nixpkgs, which makes wpa_cli work. |
|
These changes are not acceptable for several reasons:
|
|
The patch is not upstream. Alternatively, I tested that running |
This is the same setup that was proposed earlier, except we now create a new service, so the user can choose what to use (default to current root service). The unprivileged service has been working seamlessly for me for many months, but certain setups can be affected, e.g. wpa_cli (see also the discussion in nixpkgs).
See also the corresponging pr for dhcpcd #53404