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

wpa_supplicant: prevent writing non-writable configuration
main
Arnout Engelen 2 years ago committed by GitHub
commit 2b85441bb0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      nixos/modules/services/networking/supplicant.nix

@ -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…
Cancel
Save