From 45a36ecff9c4631e5b04836e58c81f24584643a4 Mon Sep 17 00:00:00 2001 From: Mike Yuan Date: Fri, 26 Apr 2024 17:48:53 +0800 Subject: man/systemd.exec: mount_switch_root uses pivot_root rather than chroot --- man/systemd.exec.xml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'man/systemd.exec.xml') diff --git a/man/systemd.exec.xml b/man/systemd.exec.xml index 38bf018ae4..d9ec44983f 100644 --- a/man/systemd.exec.xml +++ b/man/systemd.exec.xml @@ -125,9 +125,10 @@ Takes a directory path relative to the host's root directory (i.e. the root of the system running the service manager). Sets the root directory for executed processes, with the chroot2 system - call. If this is used, it must be ensured that the process binary and all its auxiliary files are available in - the chroot() jail. Note that setting this parameter might result in additional + project='man-pages'>pivot_root2 + or chroot2 + system call. If this is used, it must be ensured that the process binary and all its auxiliary files + are available in the new root. Note that setting this parameter might result in additional dependencies to be added to the unit (see above). The MountAPIVFS= and PrivateUsers= settings are particularly useful -- cgit v1.2.3