3 ms·
Has anyone started a project to rewrite `sudo` in Rust or some other memory-safe language? It seems like a prime candidate: very security sensitive, well-define
by jimrandomh 7y ago
Has anyone started a project to rewrite `sudo` in Rust or some other memory-safe language? It seems like a prime candidate: very security sensitive, well-defined functionality and API, low total complexity.
- pjmlp 7y agoLong time ago there was a project to rewrite Linux userspace in Ada, but it died due to lack of support. Also there are userspace rewrites in Go and OCaml.
- pdimitar 7y agoCould you point us at them?
- vips7L 7y agoCore utils in Rust: https://github.com/uutils/coreutils https://github.com/uutils/coreutils
- pdimitar 7y agoAwesome, thank you.
- pjmlp 7y agoCoreBoot port to Rust, started by Ron Minnich. https://github.com/oreboot/oreboot https://github.com/oreboot/oreboot Userspace in Go for Core Boot/OreBoot, also started by Ron Minnich. http://u-root.tk/ http://u-root.tk/ Similar effort for the PI, https://gokrazy.org/ https://gokrazy.org/ F-Secure Go's bare metal implementation, https://github.com/f-secure-foundry/tamago https://github.com/f-secure-foundry/tamago For OCaml, there is https://ocaml.github.io/ocamlunix/ https://ocaml.github.io/ocamlunix/. And then all the utilities that come out from MirageOS and Xen projects.
- pdimitar 7y agoExtremely useful, thanks!