]> git.ipfire.org Git - thirdparty/systemd.git/commit
namespace-util: don't reset UID/GIDs in namespace_enter() unless we enter a userns
authorLennart Poettering <lennart@poettering.net>
Wed, 15 Jan 2025 22:18:39 +0000 (23:18 +0100)
committerMike Yuan <me@yhndnzj.com>
Thu, 16 Jan 2025 10:26:57 +0000 (11:26 +0100)
commit39706728e191a588bbf79ff388e8876ef38d0856
treea39cc4248bdc1741fc55621c91bda22c9879a502
parentca97d48bd425685d4ec20397812c3b1b006f5070
namespace-util: don't reset UID/GIDs in namespace_enter() unless we enter a userns

The reset of UID/GID only really makes sense if we enter a userns, hence
let#s restrict it to that.
src/basic/namespace-util.c