]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
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)
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.


Trivial merge