Package Details: sudo-rs 0.2.2-4

Git Clone URL: https://aur.archlinux.org/sudo-rs.git (read-only, click to copy)
Package Base: sudo-rs
Description: A safety oriented and memory safe implementation of sudo and su written in Rust.
Upstream URL: https://github.com/memorysafety/sudo-rs
Keywords: su-rs sudo-rs visudo-rs
Licenses: Apache-2.0 AND MIT
Conflicts: sudo-rs
Provides: sudo-rs
Submitter: taotieren
Maintainer: taotieren (svinto)
Last Packager: taotieren
Votes: 5
Popularity: 1.40
First Submitted: 2023-09-01 09:17 (UTC)
Last Updated: 2024-03-23 02:13 (UTC)

Required by (0)

Sources (1)

Latest Comments

svinto commented on 2024-03-24 18:37 (UTC)

@taotieren Yes please.

taotieren commented on 2024-03-23 01:39 (UTC)

@svinto Thanks for the feedback, it's been fixed, would you like to be added to the co-maintainers?

svinto commented on 2024-03-13 12:49 (UTC) (edited on 2024-03-13 12:50 (UTC) by svinto)

It seems the sudo-rs provided binaries are not fully compatible with Arch distribution. The -i (--login) option does not work.

Ref: https://github.com/memorysafety/sudo-rs/issues/832#issuecomment-1994101988

I see two ways to fix this in this AUR:

  1. Copy/symlink the sudo PAM module: cp /etc/pam.d/sudo /etc/pam.d/sudo-i

  2. Compile sudo-rs instead of using the provided binaries, and patch the following line to never use "sudo-i": https://github.com/memorysafety/sudo-rs/blob/ebd3e60024b88c4506da69b86a96a4ec694d3c04/src/sudo/pam.rs#L114

svinto commented on 2024-03-08 22:55 (UTC) (edited on 2024-03-12 19:17 (UTC) by svinto)

Currently the setuid and setgid are not set for the binaries due to a bug in package() in PKGBUILD.

Code like this is invalid:

[ -f "$file" = "sudo" ]

Changing it to this should make it work:

[[ -f "$file" || "$file" = "sudo" ]]