Skip to content
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

Separate auth and logic for the daemon #3923

Merged
merged 1 commit into from Aug 13, 2020

Conversation

Ericson2314
Copy link
Member

Before, processConnection wanted to know a user name and user id, and
nix-daemon --stdio, when it isn't proxying to an underlying daemon,
would just assume "root" and 0. But nix-daemon --stdio (no proxying)
shouldn't make guesses about who holds the other end of its standard
streams.

Now processConnection takes an "auth hook", so nix-daemon can provide
the appropriate policy and daemon.cc doesn't need to know or care what
it is.

Before, processConnection wanted to know a user name and user id, and
`nix-daemon --stdio`, when it isn't proxying to an underlying daemon,
would just assume "root" and 0. But `nix-daemon --stdio` (no proxying)
shouldn't make guesses about who holds the other end of its standard
streams.

Now processConnection takes an "auth hook", so `nix-daemon` can provide
the appropriate policy and daemon.cc doesn't need to know or care what
it is.
@edolstra edolstra merged commit 859cd4a into NixOS:master Aug 13, 2020
@Ericson2314 Ericson2314 deleted the daemon-auth-cleanup branch August 13, 2020 13:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants