diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2019-10-09T16·01+0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2019-10-09T21·57+0200 |
commit | 65953789bcd73f098486b0a385b4e661c0ccda19 (patch) | |
tree | 92a0208f5a4455b89f9549b802dc0f063e64711f /tests/user-envs.sh | |
parent | 910b0fcc118cce3ade09f252da43fbe2436080e5 (diff) |
Remove world-writability from per-user directories
'nix-daemon' now creates subdirectories for users when they first connect. Fixes #509 (CVE-2019-17365). Should also fix #3127. (cherry picked from commit 5a303093dcae1e5ce9212616ef18f2ca51020b0d)
Diffstat (limited to 'tests/user-envs.sh')
-rw-r--r-- | tests/user-envs.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/user-envs.sh b/tests/user-envs.sh index ba63923113d8..aebf6a2a2b87 100644 --- a/tests/user-envs.sh +++ b/tests/user-envs.sh @@ -20,7 +20,7 @@ drvPath10=$(nix-env -f ./user-envs.nix -qa --drv-path --no-name '*' | grep foo-1 # Query descriptions. nix-env -f ./user-envs.nix -qa '*' --description | grep -q silly -rm -f $HOME/.nix-defexpr +rm -rf $HOME/.nix-defexpr ln -s $(pwd)/user-envs.nix $HOME/.nix-defexpr nix-env -qa '*' --description | grep -q silly |