As a fan of Rust myself, I know that Rust offers memory safety and type safety.<p>Suppose there was an operating system written using as much safe Rust as possible, on top of which one only ran software written safe Rust...<p>How much more impervious would such an operating system be to attacks than other operating systems?<p>FWIW, I know that Redox exists.<p>And here's a ranking of common software vulnerabilities.<p>https://cwe.mitre.org/top25/archive/2021/2021_cwe_top25.html<p>Obviously, a software developer who stores passwords in plain text is just asking for trouble - even Rust can't fix that, but there are definitely issues on that list that Rust can fix like buffer overflow.