Merge pull request #146241 from rgrunbla/wpa_supplicant-fix-writable

wpa_supplicant: prevent writing non-writable configuration
This commit is contained in:
Arnout Engelen 2022-04-27 11:35:49 +02:00 committed by GitHub
commit 2b85441bb0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -43,7 +43,7 @@ let
path = [ pkgs.coreutils ];
preStart = ''
${optionalString (suppl.configFile.path!=null) ''
${optionalString (suppl.configFile.path!=null && suppl.configFile.writable) ''
(umask 077 && touch -a "${suppl.configFile.path}")
''}
${optionalString suppl.userControlled.enable ''