-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
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-rs: init at 0.2.0 #252418
sudo-rs: init at 0.2.0 #252418
Conversation
I had a quick look, and it looks like
I expect this is mostly minor mismatches in acceptable syntax, |
Damn |
this partially addresses: #252193 (just to link these1) |
@nbraud: you'll need a patch like this to make it work with our security wrappers. I'll be submitting this upstream but I need some time to do a proper write-up and finish the testing. You'll also need to create an additional PAM service, called And we need to disable a bunch of stuff in the sudoers file that is not supported yet, things like This will need some testing as well. I think it would be nice to either extend or semi-duplicate the existing sudo nixos test. |
Not necessarily, as sudo-rs aims to be a drop-in replacement for sudo. So we could just set |
Thanks a bunch. I was looking as doing something similar once I started working on a NixOS module, but I'm just as glad you beat me to it. ^^
That was pretty-much my plan, but I wanted to defer that to a follow-on PR, splitting the generic nixpkgs work and the NixOS-specific one. Testing-wise, for now I focused on getting For the former, it looks like |
You mentioned as much before, and my answer is the same (and in this PR's description too) : this will be in a followup PR. PS: and as @r-vdp mentioned, we will most-likely adapt the current |
@r-vdp I included your patch for the moment, though hopefully it will soon make its way upstream. <3 |
Would you mind squashing the 3 commits into 1 ? (I don't see a strong reason to have 3 commits here). |
Any update on this? |
@nyabinary Your enthusiasm is noted, but it's rather exhausting to be repeatedly asked the same questions, or asked whether there's been change only 2 days after receiving a review... when I may do other things with my weekend. |
This is not unlikely to happen, given the enthusiasm shown by some users, but we are not there yet, and this will save them from breaking their system.
I'm waiting for ofborg and will squash the 3 commits into 1. |
Why? 😕 The commit messages contain useful information & context. |
the 3 commits are just part of adding this package. |
this is sudo-rs. maybe future sudo. history and package file will be under intense scrutiny and people will want to know why what was done and will ask git blame. this is one of the packages where i'd just argue for no just because. |
By that logic, every PR would be squashed. Not only does that remove (potentially useful) information from history, but it makes tooling strictly worse:
|
alright let's get a second opinion then. |
@happysalada Your choice of advocate is really not helping your case, I feel... PS: Wasn't Sandro's maintainership removed anyways? |
I was trying to find someone that might have time to help on this. |
Thanks for the review and merge. |
Hmm, what are the options for this package? Well, how to use it over sudo? |
It's planned that security.sudo.package = pkgs.sudo-rs will work Currently sudo-rs seems to be missing a few features for that to work @nbraud is currently working on fixing sudo-rs support |
@mkg20001 Any PR for the progress so far? |
master...nbraud:nixpkgs:nixos/sudo-rs well there's this but no pr yet. regardless of that, what could be done is: clone nixpkgs, remove the assertion for sudo-rs, start a vm with security.sudo.package = pkgs.sudo-rs and report the missing features it complains about to the sudo-rs repo |
@mkg20001 Isn't that just what got merged? |
@nyabinary its that plus more commits |
btw lets move further discussion to the tracking issue: #253465 |
@nyabinary feel free to help us out and propose changes that will help move this forward. However, simply asking about the progress every other day is frankly a bit annoying and doesn't add anything. So either be patient, or put in the time and effort yourself. |
Description of changes
sudo-rs
, a pure-Rust, mostly-compatible implementation of sudoThings done
./result/bin/
)