mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-24 05:44:13 +00:00
Merge pull request #146241 from rgrunbla/wpa_supplicant-fix-writable
wpa_supplicant: prevent writing non-writable configuration
This commit is contained in:
commit
2b85441bb0
@ -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 ''
|
||||
|
Loading…
Reference in New Issue
Block a user