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

sudo and sssd: Enable sssd support in sudo and building of sudo library in sssd #30445

Closed
wants to merge 2 commits into from
Closed

sudo and sssd: Enable sssd support in sudo and building of sudo library in sssd #30445

wants to merge 2 commits into from

Conversation

lejonet
Copy link
Contributor

@lejonet lejonet commented Oct 15, 2017

Motivation for this change

Sudo has support to poll SSSD for its sudoers rules, but it has to be compiled into sudo and it requires a sudo plugin, libsss_sudo.so, from SSSD to function.

Added optional arguments to sudo and sssd to enable this functionality and have tested it, via packageOverrides, on a baremetal nixos machine. Both sssd and sudo was built with nix.useSandbox = true and I tried the functionality it brings and it works, I have sudoers rules in an openldap directory which I could apply after appending sudoers: files sss to nsswitch.conf.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • Linux
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

@lejonet
Copy link
Contributor Author

lejonet commented Oct 15, 2017

Replaces #30025 as I had forgotten to make a feature branch for it, thus polluting the PR with other work.

@bjornfor Thanks for the catch

@lejonet lejonet changed the title Sssd sudo integration sudo and sssd: Enable sssd support in sudo and building of sudo library in sssd Oct 15, 2017
@bjornfor
Copy link
Contributor

Is that last commit a fixup of the first commit?

@lejonet
Copy link
Contributor Author

lejonet commented Oct 15, 2017

Yes, it is

@bjornfor
Copy link
Contributor

Then please squash them. (Easier to review etc.)

@lejonet
Copy link
Contributor Author

lejonet commented Oct 15, 2017

Will do

@lejonet
Copy link
Contributor Author

lejonet commented Oct 15, 2017

Now they are rebased, man my git "muscles" are out of shape :P

@bjornfor
Copy link
Contributor

Applied to master (eafcfaf and parent). Thanks!

@bjornfor bjornfor closed this Oct 21, 2017
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