Is this now a good place and time to explain why I prefer distros with SELinux properly configured ( like RHEL, Fedora or SUSE) over Arch and Podman or Kubernetes over Docker?
By default yes you can very easily do heinous shit with passwordless sudo that's actually pretty relevant to the podman example except people are way more likely to fuck around in the podman config
The whole complaint about this is nonsense because it doesn’t add any relevant security problem that isn’t already there in basically every Linux system.
The Arch wiki doesn’t even warn you from that and even suggests adding a tool with the exact same privilege escalation as people are criticizing here.
So, Arch is bad because they recommend to install a vulnerability?
Depends on yiur threat model? Im a noob with cybersec, but someone who does it for a living said i had to pick the distro that fits me and be aware of whats possible and not, and be aware of its implemented security or lack there of, decide if its worth it also based on where and how i life, where i take it, and how large of a target i am.
So the laptop that never leaves my house and dont use for much but playing games. Low effort. The laptop that comes with me everywhere, more security. The vps on the internet, locked down, access keys, as few services as possible.
I do like podman alott, disliked docker for being allow everything from the start. I prefer optionally lockdown everything or there isnt even a thing running. As few packages in arch too, and few to no Aur if possible
Honestly, i've never gotten SELinux and shares in Podman to work. It just never respected the volume labels in my compose for some reason and straight up block my containers from accessing their assigned shares. The only ways i could get this to Work was a) disabling SELinux, B) running rootful containers or c) not use compose, which would mean to drop portainer/arcane/whatever stack based Management i want to use, because none support quadlets
So is it actually a better idea to run Docker commands with sudo when necessary? I've always added my user to the docker group whenever I installed it.
Though it'd require permissions of your user in the first place to be exploitable - at which point the potential malware already has access to all your user files anyways.
You cannot run sudo without authentication by default.
wheel group also does not havy any privileges in the default sudo config, by the way.
I am going to assume you meant the first example in the config, but to achieve the same issue, you'd have to use the second:
## Uncomment to allow members of group wheel to execute any command# %wheel ALL=(ALL:ALL) ALL## Same thing without a password# %wheel ALL=(ALL:ALL) NOPASSWD: ALL
No, that’s just how sudo works. It’s an inherent consequence of the architecture and protecting from root escalations under the premise that an allowed user is already compromised is not in the scope of sudo. There are dozens of academic papers on that, the oldest one I know is from 2004.
run0 fixes a lot of those problems but isn’t perfect either.
View all comments
Show parent comment
91
u/C0rn3j Sep 02 '26
It is also Arch 101, there's a huge red box warning you about it at the top of the Wiki page.
https://wiki.archlinux.org/title/Docker#Installation
Any Arch user hitting the wiki up would've known - AI doesn't care, though.