[6652] chroot and change user support (Nolan)
Revision: 6652
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6652 Author: aliguori Date: 2009-02-27 22:09:45 +0000 (Fri, 27 Feb 2009)
Log Message:
-----------
chroot and change user support (Nolan)
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]>
Signed-off-by Anthony Liguori <[email protected]>
Modified Paths:
--------------
trunk/qemu-doc.texi
trunk/vl.c
Modified: trunk/qemu-doc.texi
===================================================================
qemu-doc.texi +8 -0
@@ -1161,6 +1161,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
Modified: trunk/vl.c
===================================================================
vl.c +58 -5
115 lines not on this page · raw message