224
submitted 3 weeks ago by petsoi@discuss.tchncs.de to c/linux@lemmy.ml
(page 2) 50 comments
sorted by: hot top controversial new old
[-] Titou@sh.itjust.works 11 points 3 weeks ago
[-] leo85811nardo@lemmy.world 9 points 3 weeks ago

sudo provides sudoedit or sudo -e which allows me to use vim with my user configuration btw

[-] aBundleOfFerrets@sh.itjust.works 4 points 3 weeks ago

Just symlink your user config to root, nothing at all wrong with that.

load more comments (1 replies)
[-] e8d79@discuss.tchncs.de 8 points 3 weeks ago

I really don't care about the command I use to get elevated privileges. On my Debian servers I use su and maybe in future, if Fedora decides to make the switch, I will use run0.

load more comments (1 replies)
[-] SwingingTheLamp@midwest.social 5 points 3 weeks ago

This just sounds like a bad idea, a solution in search of a problem. Sure, sudo is a setuid binary, but it's a fairly simple program, and at some point, you have to trust the code. It's also a very fundamental piece of the system that you want to always work, even (especially!) when other things get borked. The brief description of run0 already has too many potential points of failure.

[-] Zucca@sopuli.xyz 10 points 3 weeks ago

sudo is a setuid binary, but it’s a fairly simple program

Some people would disagree to this.

The brief description of run0 already has too many potential points of failure.

If the "listener" is PID1, which will run the privileged command, in theory, it would be quite bullet proof (in a working system PID1 is always there). But since this is systemd, PID1 is much more than that and much more complex. On the other hand spawning another daemon from PID1 to be the "listener" makes it, perhaps, even more complicated. You'd have to make sure the listener is always running and have some process supervisor there to watch if it exits... and maybe even a watchdog polling it to make sure it isn't frozen.

So my conclusion is the same as yours:

a solution in search of a problem

We already have a working solution. Have a well written SUID program. I've been using doas for some years now. It's simple enough that I trust it.

load more comments (17 replies)
[-] huf@hexbear.net 8 points 3 weeks ago

it took less than a day for someone to break run0 totally open, so basically, you have a choice between a well tested/debugged sudo and this new thing which may eventually mature

[-] LeLachs@lemmy.ml 7 points 3 weeks ago* (last edited 3 weeks ago)

As far as I know, the exploit you are referring to, wasn't actually a vulnerability. https://youtu.be/awkoa_WxFIg?feature=shared&t=659 Although feel free to correct me on that one

load more comments (2 replies)
load more comments (13 replies)
[-] MonkderDritte@feddit.de 4 points 3 weeks ago
load more comments (2 replies)
load more comments
view more: ‹ prev next ›
this post was submitted on 09 May 2024
224 points (95.5% liked)

Linux

44870 readers
1180 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS