From: Mike Yuan Date: Fri, 26 Apr 2024 09:48:53 +0000 (+0800) Subject: man/systemd.exec: mount_switch_root uses pivot_root rather than chroot X-Git-Tag: v256-rc2~181^2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=45a36ecff9c4631e5b04836e58c81f24584643a4;p=thirdparty%2Fsystemd.git man/systemd.exec: mount_switch_root uses pivot_root rather than chroot --- diff --git a/man/systemd.exec.xml b/man/systemd.exec.xml index 38bf018ae46..d9ec44983fc 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