Re:sudo and su Being Rewritten in Rust for Memory Safety
by IshKebab on Monday May 01, 2023 @01:10AM
(#35769309)
Existing code like the code in the sha2 crate??
[ Parent
| on HN ]
Re:sudo and su Being Rewritten in Rust for Memory Safety
by int_19h on Monday May 01, 2023 @02:28AM
(#35769650)
Sure. Or rather the parts of it that they're actually using.
Re:sudo and su Being Rewritten in Rust for Memory Safety
by IshKebab on Monday May 01, 2023 @03:08AM
(#35769871)
What would be the point of that?
Re:sudo and su Being Rewritten in Rust for Memory Safety
by int_19h on Monday May 01, 2023 @01:53PM
(#35776573)
A single bundle of code is easier to audit and easier to package.
Re:sudo and su Being Rewritten in Rust for Memory Safety
by IshKebab on Monday May 01, 2023 @05:14PM
(#35779268)
It's harder to package if you're using Cargo. Using the sha2 crate is one line. Copying the code into your project is a ton more work.
Ease of auditing is debatable. Using shared popular libraries gives the benefit of lots of people using them.
Plus actual code audits are very rare and of dubious value. They're mostly useful for finding out how well written the code is rather than finding bugs. For that your basically want fuzzing.