]> git.ipfire.org Git - thirdparty/systemd.git/commit
namespace: Clone root dir descriptor before use
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 28 Nov 2025 19:28:01 +0000 (20:28 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Sun, 14 Dec 2025 10:32:06 +0000 (11:32 +0100)
commit5eb0639faac128ecde6cd0bfc9b484efddfdc49c
treec408311e6aaaf37462bc34eada538002073a976c
parent273c6bc045fdfa50c693d0b88ec2a4cbc9258329
namespace: Clone root dir descriptor before use

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.
src/core/dbus-service.c
src/core/execute.c
src/core/service.c