TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Memory-safe sudo to become the default in Ubuntu

224 pointsby jnsgruk18 days ago

13 comments

kokada18 days ago
I am not sure if memory-safety is the biggest issue in sudo design. I find the fact that it is a setuid binary a much bigger issue because a bug can possible result in privilege escalation.<p>I found an alternative implementation that doesn&#x27;t rely in being a setuid binary like systemd-run0 much more interesting from a security perspective, but I am no security expert.
评论 #43905325 未加载
评论 #43905320 未加载
评论 #43912313 未加载
评论 #43905303 未加载
评论 #43906710 未加载
bArray18 days ago
&gt; This move is part of a broader effort by Canonical to improve the resilience and maintainability of core system components. Sudo-rs is developed by the Trifecta Tech Foundation (TTF), a nonprofit organization that creates secure, open source building blocks for infrastructure software.<p>Ubuntu continuously updates itself without permission, killing apps and losing previous state. You have the Javascript based Gnome window manager that is always bugging out. The Ubuntu packages, drivers and kernel are laughably behind Debian and even further behind mainline. Ubuntu continues to morph into something I don&#x27;t believe in.<p>That all said, Rust is not a smoking gun for incorrect application logic. It could still happily incorrectly execute stuff with the wrong permissions or blow something up badly. I think it&#x27;s also a bad idea to offer it as a drop-in replacement when clearly features are still missing since a long time [1].<p>[1] <a href="https:&#x2F;&#x2F;github.com&#x2F;trifectatechfoundation&#x2F;sudo-rs&#x2F;issues?page=2">https:&#x2F;&#x2F;github.com&#x2F;trifectatechfoundation&#x2F;sudo-rs&#x2F;issues?pag...</a>
评论 #43908748 未加载
评论 #43909238 未加载
评论 #43907530 未加载
评论 #43908086 未加载
评论 #43909256 未加载
评论 #43908593 未加载
Gabrys118 days ago
&gt; Ubuntu is the most widely deployed Linux operating system<p>Nitpicking, but I thought Android was the most widely deployed Linux OS around...
评论 #43908092 未加载
评论 #43906530 未加载
评论 #43906802 未加载
评论 #43906513 未加载
评论 #43913919 未加载
评论 #43906607 未加载
评论 #43906567 未加载
评论 #43906815 未加载
ndegruchy18 days ago
Seems like the trifecta group is &#x2F;just&#x2F; about migrating tools to rust? Am I understanding that right?<p>I don&#x27;t have a problem with it, specifically. Seems odd that they don&#x27;t advertise it, though.
评论 #43905264 未加载
评论 #43905261 未加载
Rotundo18 days ago
Did sudo have memory problems? Did it ever fail because it didn&#x27;t handle its memory correctly?
评论 #43904438 未加载
评论 #43904279 未加载
评论 #43905676 未加载
bpierre18 days ago
How does sudo-rs compare to run0? <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=40205714">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=40205714</a>
评论 #43908128 未加载
评论 #43905841 未加载
johnklos18 days ago
&quot;This move is part of a broader effort by Canonical to improve the resilience and maintainability of core system components.&quot;<p>Somehow &quot;maintainability&quot; has never been something I&#x27;d ever associate with Ubuntu. Is it a reference to their source tree? That&#x27;d make a lot more sense than if they were referring to the OS itself.
xvilka18 days ago
Next they should adopt uutils[1] as coreutils, findutils, diffutils, etc alternative.<p>[1] <a href="http:&#x2F;&#x2F;github.com&#x2F;uutils&#x2F;">http:&#x2F;&#x2F;github.com&#x2F;uutils&#x2F;</a>
评论 #43907213 未加载
评论 #43907914 未加载
dev_l1x_be18 days ago
doas is a much simpler (and therefore better) alternative.
评论 #43906318 未加载
评论 #43911111 未加载
评论 #43905420 未加载
zamalek18 days ago
I have been using sudo-rs for over a year. The only issue that I&#x27;ve had is running into `-E` being unsupported once every few months - which is arguably a good thing because I shouldn&#x27;t be naughty and allow arbitrary envs to leak into a privileged session.
rbanffy18 days ago
What are the implications of the license not being GPL?
评论 #43907721 未加载
asmodeuslucifer18 days ago
That&#x27;s good to hear.
figomore17 days ago
sudo-rs is already default AerynOS (SerpentOS).