Earlier quoted context omitted.
Uh, didn't I say exactly that? Gnu/Linux Is just collegially known as "Linux" and the operation system suffix made it clear what he was talking about. I didn't come up with the usage of the term, I was merely trying to interpret their words.
there's competing specs, holy wars, etc. but POSIX is kind of like what you're describing. popular distros are usually mostly-but-not-completely compliant.
Memory-safe sudo to become the default in Ubuntu
201–210 of 282 posts
Re: Memory-safe sudo to become the default in Ubuntu
#202Re: Memory-safe sudo to become the default in Ubuntu
#203I 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. I found an alternative implementation that doesn't rely in being a setuid binary like systemd-run0 much more interesting from a security perspective, but I am no security expert.
A bug in a daemon-based sudo alternative would surely also result in privilege escalation? I think the main benefit of eliminating setuid binaries is that you can forbid them system-wide (e.g. via mount flags), as a hardening measure.
So yes, I am not saying that privilege escalation bugs are impossible if you have a different architecture, but like Lennart argues is that it makes them much more difficult to happen, especially because creating a proper setuid is difficult. Also there is a bunch of things that makes sudo especially tricky to implement correctly.
Re: Memory-safe sudo to become the default in Ubuntu
#204Earlier quoted context omitted.
Why not? The way Windows does it should work in theory I think? Maybe you can't realistically do it on Linux , because Linux doesn't care about desktop security and doesn't have the kind of privileged GUI that you need.
The way Windows does it is users are prompted to elevate permissions, and can be tricked into clicking "Yes," just like users can be tricked into using sudo.
It can't be enforced on Linux because `sudo` can be trivially MitM'd, but you can't do that on Windows because it's just a click.
Re: Memory-safe sudo to become the default in Ubuntu
#205Earlier quoted context omitted.
> My point, where is the proof of that "religious element" beyond memes? Is it in the article? Is it in the links? Where can we see this religious fervor in action? You can argue with fossuser about the validity of what they said. I'll offer my opinion , which is not some proof from god or anything that you seem to be seeking, which is that I find significantly more annoying comments from Rust users, about how someth…
> which is not some proof from god or anything that you seem to be seeking You know what, you or anyone else can start with actual proofs. I don't want your lived experience and memes as proof, I need messages, posts from people (bonus points for sudo-rs members) that show how zealous they are about Rust and rewriting all the things in it. I'm a Java dev, that just dabbles in Rust. I've seen observed many claims abou…
Have fun.
(I'm sure if I pick any specific quotes, you'll start arguing the semantics of what is "zealous", how whatever number of comments I pick are outliers, or not proof enough, etc. So, here's one query, of many, that you can pick through.)
In the end, I really could not care less if you agree with the characterization or not. But your enthusiastic defense is fun. If you keep going, you'll be coming close to being an example yourself!
Re: Memory-safe sudo to become the default in Ubuntu
#206Earlier quoted context omitted.
It's all sides of government. Edit: all links now fixed. ____ (generated, but with references) # U.S. government guidance on memory-safe languages Here's the list of links to U.S. government documents recommending memory-safe programming languages for cybersecurity. 1. *White House ONCD - "Back to the Building Blocks" (Feb 2024)* - Encourages developers to use memory-safe languages like Rust, Python, Java, C#, Go, Sw…
What your parent is referring to is that three of those links now 404. Some of that is simply because whitehouse.gov gets redone with new administrations, and so old stuff is thrown out. They're also referring to how the Trump admin is talking about seriously reducing CISA's budget. Things like that.
Re: Memory-safe sudo to become the default in Ubuntu
#207Earlier quoted context omitted.
I don't see how this attack is related to the setuid binary. No matter what method you provide to the user to elevate their privileges, they can be tricked into doing it. If it was provided by a daemon, built into systemd, or anything else, the problem would be the same.
It's related because malicous code can use the setuid binary to elevate its privileges. >If it was provided by a daemon, built into systemd, or anything else Yes, this is also dangerous.
Re: Memory-safe sudo to become the default in Ubuntu
#208Earlier quoted context omitted.
[flagged]
The comment you responded to says: "Seems odd that they don't advertise it [the usage of Rust], though." Isn't not advertising a language the polar opposite of being religious about a language? I am all for a memory safe sudo and I don't care which language it is written in, use C, Ada, Rust, as long as it is a suitable systems programming language understood by a community of developers and you can proof memory safe…
My reply is flagged dead now which is fine since it did create an unproductive thread, but it was more that I had noticed Rust as a community seems to have more of an identity based political bent around it more so than other languages. Something I've also noticed with Mozilla - it's not just the language, but that the language signals you're a certain kind of person with a certain kind of politics in addition to the general pro-rust stuff.
I don't recall seeing this combination elsewhere with other languages before - though there have been religious like battles over languages forever, but I don't think it's been predictive of someone's political identity before?
Re: Memory-safe sudo to become the default in Ubuntu
#209> 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. Ubuntu continuously updates itself without permission, killing apps and losing previous state. You have the Javascript based Gnome…
> 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. This side steps the issue which is "Does Rust help you make software more correct?" No one is arguing that Rust is perfect. There are plenty of bugs in my Rust software. The question is only -- are we better off with Rust than the alternati…
Entirely untrue. It may happen, but there is zero consensus to port Linux to rust. Not even the tiniest bit.
Re: Memory-safe sudo to become the default in Ubuntu
#210Earlier quoted context omitted.
apt won't on its own, but if you're using the official images there's probably a service running that's calling it, probably for security patches etc. The bigger problem is upgrading packages deliberately but being surprised by the results. My team's current favorite is the upgrade process itself suddenly having new interactive prompts breaking our scripts.
I thought DEBIAN_FRONTEND=noninteractive was supposed to avoid that?