From 4c793dda22213a7aba8e4d9a814e8f368a5f8bf7 Mon Sep 17 00:00:00 2001 From: "M. Mohan Kumar" Date: Wed, 14 Dec 2011 13:49:28 +0530 Subject: hw/9pfs: Add new proxy filesystem driver Add new proxy filesystem driver to add root privilege to qemu process. It needs a helper process to be started by root user. Following command line can be used to utilize proxy filesystem driver -virtfs proxy,id=,mount_tag=,socket_fd= Signed-off-by: M. Mohan Kumar Signed-off-by: Aneesh Kumar K.V --- fsdev/qemu-fsdev.c | 1 + fsdev/qemu-fsdev.h | 1 + 2 files changed, 2 insertions(+) (limited to 'fsdev') diff --git a/fsdev/qemu-fsdev.c b/fsdev/qemu-fsdev.c index 00f48ab44c..e20202a4bf 100644 --- a/fsdev/qemu-fsdev.c +++ b/fsdev/qemu-fsdev.c @@ -27,6 +27,7 @@ static FsDriverTable FsDrivers[] = { { .name = "handle", .ops = &handle_ops}, #endif { .name = "synth", .ops = &synth_ops}, + { .name = "proxy", .ops = &proxy_ops}, }; int qemu_fsdev_add(QemuOpts *opts) diff --git a/fsdev/qemu-fsdev.h b/fsdev/qemu-fsdev.h index 921452df25..1af1f545d8 100644 --- a/fsdev/qemu-fsdev.h +++ b/fsdev/qemu-fsdev.h @@ -44,4 +44,5 @@ FsDriverEntry *get_fsdev_fsentry(char *id); extern FileOperations local_ops; extern FileOperations handle_ops; extern FileOperations synth_ops; +extern FileOperations proxy_ops; #endif -- cgit v1.2.1