Skip to contentSkip to conversation

chroot and change user support

PATCH New Nolan 1 participant 1 message Feb 27, 2009

lore
Share & tools
lore

Nolan

author
#0 lore raw

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.

qemu-doc.texi +8 -0
Index: qemu-doc.texi
===================================================================
@@ -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