sudo-rs
sudo
sudo-rs | sudo | |
---|---|---|
13 | 1 | |
2,830 | 4 | |
1.0% | - | |
9.6 | 0.0 | |
about 1 month ago | 24 days ago | |
Rust | C | |
GNU General Public License v3.0 or later | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
sudo-rs
-
Run0 – systemd based alternative to sudo announced
There is also a write of sudo in Rust, which works more akin to the traditional sudo but memory-safe and with fewer bugs: https://www.memorysafety.org/blog/sudo-first-stable-release/
Source code: https://github.com/memorysafety/sudo-rs
And if you are running Debian 13 (trixie) or later, or Ubuntu 24.04 (Noble Numbat) or later, you can already install it using `apt install sudo-rs`.
-
The First Stable Release of a Rust-Rewrite Sudo Implementation
It seems like those changes are noted here: https://github.com/memorysafety/sudo-rs#differences-from-ori...
- Testing the memory safe Rust implementation of Sudo/Su
-
How to spawn a process as root (like sudo). without sudo?
It uses the setuid flag, just like sudo. The readme says
- Way to improve security of sudo: make a daemon instead of setuid bina
- Two core Unix-like utilities, sudo and su, are getting rewrites in Rust
-
Sudo and Su Being Rewritten in Rust for Memory Safety
https://github.com/memorysafety/sudo-rs/blob/main/proofs/sud...
sidenote: why there is no python like syntax language TLA+ and ability to generate a partial implementation you could hook into (complete) from that model.
- Sudo-rs: A memory safe implementation of sudo and su
- memorysafety/sudo-rs: A memory safe implementation of sudo and su. Sudo-rs is currently under active development and is not suited for any production environment
-
Bringing Memory Safety to sudo and su
If you read the README https://github.com/memorysafety/sudo-rs
> Our current target is to build a drop-in replacement for most basic use cases of sudo. ...
sudo
-
Testing the memory safe Rust implementation of Sudo/Su
I'm not sure, I only see static analysis and fuzzing workflows in the CI on GitHub [1].
[1] https://github.com/millert/sudo/actions
What are some alternatives?
sudo - Utility to execute a command as another user
tempfile - Temporary file library for rust
doas - A port of OpenBSD's doas which runs on FreeBSD, Linux, NetBSD, and illumos
OpenDoas - A portable fork of the OpenBSD `doas` command
nomicon - The Dark Arts of Advanced and Unsafe Rust Programming
rustsec - RustSec API & Tooling
Cargo - The Rust package manager
rust - Empowering everyone to build reliable and efficient software.
coreutils - Cross-platform Rust rewrite of the GNU coreutils