r/linuxmemes • Arch BTW • Sep 01 '26

LINUX MEME Dropping this here 🫳

Post image
3.4k Upvotes

369 comments sorted by

View all comments

Show parent comment

196

u/[deleted] Sep 02 '26

[removed] — view removed comment

138

u/Ixxol Sep 02 '26

it is

91

u/C0rn3j Sep 02 '26

Holy shit that's like, docker 101.

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.

13

u/NimrodvanHall Sep 02 '26

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?

18

u/grazbouille New York Nix⚾s Sep 02 '26

Security guy here

While podman is configured by default to be rootless you can very much do extremely heinous shit with its config and it will not warn you about it

Before using any complex tool on a production system go read up on the best practices and hardening

Don't blindly trust your tools

2

u/Jumpy-Dinner-5001 Sep 02 '26

As a security guy you should know that sudo or the wheel group have the same problem

11

u/grazbouille New York Nix⚾s Sep 02 '26

Yes and you should still understand these tools and read up on them when you edit the configuration

What is your point

Obviously you need privileges sometimes we would just lock ourselves into a sandbox otherwise

4

u/C0rn3j Sep 02 '26

Not sure why you're entertaining this nonsense, sudo needs auth, docker does not.

3

u/grazbouille New York Nix⚾s Sep 02 '26

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

→ More replies (5)

1

u/lazyboy76 Genfool 🐧 Sep 05 '26

I'm using rootless docker, am I safe? Serious question.

2

u/grazbouille New York Nix⚾s Sep 05 '26

From this specific exploit yes

The main point of rootless docker is to defend against breakouts

The main goal in hacking is remote code execution if you find an exploit in an app you will generally try to make it drop you to a shell

This shell will be logged in as the user that created it (the one the app is running as)

In a container environment its a bit different since the shell you will drop to is still inside the container

Now especially if you are root getting the container to drop to a shell on the host machine can be fairly trivial (depends on the image)

The shell the container drops to will be running with the same user as the container

Which means rootful docker just makes you root when you break out

Rootless half solves this you still have to ensure the user the container is running as has no access to anything it doesn't need to

Because from a rootless docker breakout you can still read and write files and probably privilege escalate

2

u/codeasm Sep 02 '26

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

1

u/P3chv0gel Sep 02 '26

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

→ More replies (1)

2

u/LazyLucretia Sep 02 '26

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.

4

u/C0rn3j Sep 02 '26

Yup.

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.

1

u/Wertbon1789 Sep 02 '26

Or setup rootless docker, or user namespaces if applicable. Though user namespaces can still be bypassed on rootfull docker I think.

1

u/Jumpy-Dinner-5001 Sep 02 '26

You know that the exact same applies to wheel group and sudo?

1

u/C0rn3j Sep 02 '26

It does not.

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
→ More replies (5)

12

u/EggFucker1313 Sep 02 '26

It is ai slop of the trashiest quality, for the worst bottom-feeding techbros

4

u/Wired-For-Trouble Sep 02 '26

It literally is. Here’s the director of the project admitting to Prime that the ENTIRE project was just a series of Claude prompts.

https://youtu.be/MWvH7BRgwL8?is=Vz86LEAsf2sK8lvD

1

u/disperso Sep 03 '26

As someone has said before, this is the year of Linux in the AI psychosis.

2

u/Capable_Landscape686 Sep 03 '26

I dodged a tactical nuke here. I saw it try to install Claude Code and hopped immediately.