systemd / systemd

The systemd System and Service Manager
https://systemd.io
GNU General Public License v2.0
13.25k stars 3.79k forks source link

run0 escapes toolbox container #33940

Closed axtloss closed 3 months ago

axtloss commented 3 months ago

systemd version the issue has been seen with

256

Used distribution

Fedora 40

Linux kernel version used

6.9.12-200.fc40.x86_64

CPU architectures issue was seen on

x86_64

Component

other

Expected behaviour you didn't see

Executing run0 inside a toolbox container would elevate to the root user inside the container

Unexpected behaviour you saw

Executing run0 inside a toolbox container elevates to the root user outside of the container

Steps to reproduce the problem

Additional program output to the terminal or log subsystem illustrating the issue

No response

axtloss commented 3 months ago

This is most likely caused by the toolbox container having basically full access to the host xdg runtime directory, so it's possible that systemd gets confused by this, but it'd be nice to see if there's any way to make sure the root user stays in the right environment

axtloss commented 3 months ago

nevermind this is a duplicate sorry for not checking earlier!