From: Daan De Meyer Date: Fri, 31 Oct 2025 21:30:46 +0000 (+0100) Subject: core: Add RootDirectoryFileDescriptor= (#39480) X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=dd15dd1a586ceed5e6b9bc6324227c09d7d4480e;p=thirdparty%2Fsystemd.git core: Add RootDirectoryFileDescriptor= (#39480) RootDirectory= but via a open_tree() file descriptor. This allows setting up the execution environment for a service by the client in a mount namespace and then starting a transient unit in that execution environment using the new property. We also add --root-directory= and --same-root-dir= to systemd-run to have it run services within the given root directory. As systemd-run might be invoked from a different mount namespace than what systemd is running in, systemd-run opens the given path with open_tree() and then sends it to systemd using the new RootDirectoryFileDescriptor= property. --- dd15dd1a586ceed5e6b9bc6324227c09d7d4480e