38
submitted 3 weeks ago by [email protected] to c/[email protected]
top 8 comments
sorted by: hot top new old
[-] [email protected] 7 points 3 weeks ago

Great, massive step forward. Rust’s memory safety will prevent potential PE vulnerabilities (and more).

[-] [email protected] 5 points 3 weeks ago
[-] [email protected] 17 points 3 weeks ago

No user should notice. If it acts differently then that's a regression.

[-] [email protected] 4 points 3 weeks ago

It looks like it's explicitly not a 1:1 replacement

[-] [email protected] 5 points 3 weeks ago

It is not a full replacement - but they are aiming for

Our current target is to build a drop-in replacement for all common use cases of sudo.

They are dropping support for some of the older/niche features/settings and now ignore some of the config you used to be able to do.

Some parts of the original sudo are explicitly not in scope. Sudo has a large and rich history and some of the features available in the original sudo implementation are largely unused or only available for legacy platforms. In order to determine which features make it we both consider whether the feature is relevant for modern systems, and whether it will receive at very least decent usage. Finally, of course, a feature should not compromise the safety of the whole program.

But generally for all common use cases it should just be a drop in replacement.

[-] [email protected] 2 points 3 weeks ago

sudo-rs supports less functionality than sudo. Some of this is by design.
i.e. not 1:1 replacement.
My use cases probably won't be affected, but this will break things for some people.

[-] [email protected] 2 points 2 weeks ago

Happy to see more rust!

I’m geniously curious : Is there a difference in binary sizes? 5%? 10%?

[-] [email protected] 2 points 2 weeks ago* (last edited 2 weeks ago)

Looks like it's split in library and binary, the binary itself is smaller, but if you add the size of the library it would be about 10% bigger. At least judging by the package sizes.

this post was submitted on 13 Jun 2025
38 points (93.2% liked)

Rust Programming

8858 readers
1 users here now

founded 6 years ago
MODERATORS