summary refs log tree commit diff stats
path: root/qemu-config.c
diff options
context:
space:
mode:
authorVenkateswararao Jujjuri (JV) <jvrao@linux.vnet.ibm.com>2010-06-14 13:34:40 -0700
committerAnthony Liguori <aliguori@us.ibm.com>2010-06-22 15:15:30 -0500
commit9ce56db6f0de81fd81972029073ff8008830bc02 (patch)
treeb5dea604c05c2f06080ffbc9cc96385a337b093b /qemu-config.c
parentfac4f111476740f5bda988b320aa9037d6672a56 (diff)
downloadfocaccia-qemu-9ce56db6f0de81fd81972029073ff8008830bc02.tar.gz
focaccia-qemu-9ce56db6f0de81fd81972029073ff8008830bc02.zip
virtio-9p: Introduces an option to specify the security model.
The new option is:

-fsdev fstype,id=myid,path=/share_path/,security_model=[mapped|passthrough]
-virtfs fstype,path=/share_path/,security_model=[mapped|passthrough],mnt_tag=tag

In the case of mapped security model, files are created with QEMU user
credentials and the client-user's credentials are saved in extended attributes.
Whereas in the case of passthrough security model, files on the
filesystem are directly created with client-user's credentials.

Signed-off-by: Venkateswararao Jujjuri <jvrao@linux.vnet.ibm.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'qemu-config.c')
-rw-r--r--qemu-config.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/qemu-config.c b/qemu-config.c
index 5a4e61b0f6..95abe61fab 100644
--- a/qemu-config.c
+++ b/qemu-config.c
@@ -163,6 +163,9 @@ QemuOptsList qemu_fsdev_opts = {
         }, {
             .name = "path",
             .type = QEMU_OPT_STRING,
+        }, {
+            .name = "security_model",
+            .type = QEMU_OPT_STRING,
         },
         { /*End of list */ }
     },
@@ -184,6 +187,9 @@ QemuOptsList qemu_virtfs_opts = {
         }, {
             .name = "mount_tag",
             .type = QEMU_OPT_STRING,
+        }, {
+            .name = "security_model",
+            .type = QEMU_OPT_STRING,
         },
 
         { /*End of list */ }