• Thomas Haller's avatar
    core: fix file permissions for "/var/lib/NetworkManager/secret_key" · 2d46247c
    Thomas Haller authored
    Ooherwise, the file has wrong permissions:
    
      # ls -la /var/lib/NetworkManager/secret_key
      ----r-xr-x. 1 root root 50 May 14 13:52 /var/lib/NetworkManager/secret_key
    
    Luckily, /var/lib/NetworkManager should be already
    
      # ls -lad /var/lib/NetworkManager
      drwx------. 2 root root 8192 May 14 13:57 /var/lib/NetworkManager
    
    which mitigates this a bit.
    
    Fixes: dbcb1d6d ('core: let nm_utils_secret_key_read() handle failures internally')
    
    #175
    (cherry picked from commit dc3a2f9b)
    2d46247c
nm-core-utils.c 130 KB