]> git.ipfire.org Git - thirdparty/systemd.git/commit
namespace: Clone root dir descriptor before use (#39939)
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Sun, 14 Dec 2025 12:34:17 +0000 (13:34 +0100)
committerGitHub <noreply@github.com>
Sun, 14 Dec 2025 12:34:17 +0000 (13:34 +0100)
commitb96dccaba3249f5d7b9ad3acab79da74d32949c2
tree261e323ca6c3010bf8d4f47423d6d2b6320151cb
parent595d88cdc86afdf40127282d711c5985c85fed9b
parent2cee5c22b63505715aa22353ca0b3f5658f429ee
namespace: Clone root dir descriptor before use (#39939)

Before doing anything with the root directory file descriptor, let's
make sure we clone it first so that the caller can't mess with mount fd
attributes via mount_setattr() anymore.

We clone during parsing instead of in executor so that the caller can't
mess with the mount fd between invocations.