-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove world-writability from {profiles,gcroots}/per-user #3136
Conversation
The install matrix failed on almost all cases: https://buildkite.com/organizations/grahamc/pipelines/nix-install-matrix/builds/33/jobs/b20b2d91-a52a-41be-b210-ca8b6a5709eb/artifacts/bdfccc3f-8bd0-4917-b266-96a5a0ce0b23 Seems the problem is quite consistently:
I ran this after the first push. I'll re-run (but on a bigger server so it doesn't take 2h...) |
Where are you seeing that? Your link shows a lot of "command not found" errors. |
pro tip: open them in two windows next to each other, and zoom out of the page as much as possible to compare. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code LGTM although haven’t tested it. And @edolstra is right that this feels less error-prone than having to check in the profiles.
Can we please have the CVE in at least one of the commit messages, for future reference? |
fe11f8a
to
9fbd222
Compare
'nix-daemon' now creates subdirectories for users when they first connect. Fixes #509 (CVE-2019-17365). Should also fix #3127.
This is already done by the installer, so no need to do it again.
700 is pointless since the store is world-readable anyway. And per-user/root/channels must be world-readable.
9fbd222
to
20eec80
Compare
These directories are now created on demand by the daemon.
Also some simplifications to the profile scripts.
Alternative to #3134, #3135.