chroot and change user support
PATCH 1/1 chroot and change user support
Resent with fixed formatting.
This patch adds two new command line options:
-chroot <dir>
-runas <user>
This is useful for running qemu as an unprivileged user in a chroot jail. To avoid having to populate the jail, chrooting happens right before the start of guest execution.
Signed-off-by Nolan Leake <[email protected]>
qemu-doc.texi +8 -0
@@ -1158,6 +1158,14 @@ @item -echr 20 @end table +@item -chroot dir +Immediately before starting guest execution, chroot to the specified +directory. Especially useful in combination with -runas. + +@item -runas user +Immediately before starting guest execution, drop root privileges, switching +to the specified user. + @end table @c man end
vl.c +58 -5
115 lines not on this page · raw message