Why do we need sudo-rs?

Posted by bankroll5441@reddit | linux | View on Reddit | 203 comments

I finally got around to updating one of my home servers from Ubuntu server 25.04 to 25.10. I put it off for a while as I couldn't figure out why my tun mods were not persisting across reboots and finally set out to correct that yesterday.

Nonetheless, everything was smooth with the upgrade, I fixed the tun issue (was related to ubuntu using copymods for raspberry pi's), no issues. Though I ran my biweekly updates via Ansible and found that privilege escalation was failing, despite sudo working just fine with the same exact key the controller uses for Ansible. I looked into it and found that Ubuntu decided that sudo-rs should be the default going forward.

Now, I looked into it, but am not a dev. I don't do server administration on an enterprise level. I do not understand why we need a "memory safe" implementation of sudo, and why Canonical seems to be the only ones implementing this. Can someone please explain in laymens terms why we need a rust re-write of sudo and how it's beneficial to end users/administrators?