mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-14 06:00:33 +03:00
wpa_supplicant: prevent writing non-writable configuration
This commit is contained in:
parent
c6b332cb1a
commit
9b2faeb38e
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ let
|
||||||
path = [ pkgs.coreutils ];
|
path = [ pkgs.coreutils ];
|
||||||
|
|
||||||
preStart = ''
|
preStart = ''
|
||||||
${optionalString (suppl.configFile.path!=null) ''
|
${optionalString (suppl.configFile.path!=null && suppl.configFile.writable) ''
|
||||||
(umask 077 && touch -a "${suppl.configFile.path}")
|
(umask 077 && touch -a "${suppl.configFile.path}")
|
||||||
''}
|
''}
|
||||||
${optionalString suppl.userControlled.enable ''
|
${optionalString suppl.userControlled.enable ''
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue