In FreeBSD, wpa_supplicant.conf is installed with 0600 by default.
However, after calling UPDATE_CONFIG command, the new created tmpfile
with default permision (0644) will overwrite this behavior. We use chmod
before renaming to prevent such leakage.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
No Lint Coverage - Unit
No Test Coverage - Build Status
Buildable 72107 Build 68990: arc lint + arc unit
Event Timeline
Comment Actions
I wonder multiple things:
(a) is this a problem with umask for the wpa_supplicant process and could be fixed in the startup script for the general FreeBSD case for as long as a user does not run things manually?
(b) should the code not check the original config file permissions and apply these? (generic solution?)
(c) if there is no file, hard coding these as for android would need #ifdef around.
Comment Actions
No, other wpa consumer, like the wutui from GSoC 2025 can trigger this.
(b) should the code not check the original config file permissions and apply these? (generic solution?)
Yes, you are right. Fix it now! Thanks!
(c) if there is no file, hard coding these as for android would need #ifdef around.
Ok.