mirror of
https://github.com/clearlinux/kvmtool.git
synced 2026-06-15 18:05:49 +00:00
3c29e2aabd
This patch adds 'kvm sandbox' which is a wrapper on top of 'kvm run' which allows the user to easily specify sandboxed command to run in a custom rootfs guest. Example usage: kvm sandbox -d test_guest -k some_kernel -- do_something_in_guest Suggested-by: Pekka Enberg <penberg@cs.helsinki.fi> Signed-off-by: Sasha Levin <levinsasha928@gmail.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
10 lines
210 B
C
10 lines
210 B
C
#include "kvm/builtin-sandbox.h"
|
|
#include "kvm/builtin-run.h"
|
|
|
|
int kvm_cmd_sandbox(int argc, const char **argv, const char *prefix)
|
|
{
|
|
kvm_run_set_wrapper_sandbox();
|
|
|
|
return kvm_cmd_run(argc, argv, prefix);
|
|
}
|