mirror of
https://github.com/NixOS/nix.git
synced 2025-12-01 06:31:00 +01:00
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 5a303093dc)
This commit is contained in:
parent
910b0fcc11
commit
65953789bc
11 changed files with 41 additions and 43 deletions
|
|
@ -628,6 +628,9 @@ public:
|
|||
return storePath;
|
||||
}
|
||||
|
||||
virtual void createUser(const std::string & userName, uid_t userId)
|
||||
{ }
|
||||
|
||||
protected:
|
||||
|
||||
Stats stats;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue