]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
Check inode number to see if we are in init namespace (#35306)
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 25 Nov 2024 13:13:36 +0000 (14:13 +0100)
committerGitHub <noreply@github.com>
Mon, 25 Nov 2024 13:13:36 +0000 (14:13 +0100)
This is a more comprehensive fix compared to #35273. Also adds a minimal
test only.

Based on Luca's #35273 but generalizes the code a bit.

In v258 we really should get rid of the old heuristics around userns and
cgroupns detection, but given we are late in the v257 cycle this keeps
them in.

1  2 
src/basic/namespace-util.c

Simple merge