diff options
author | Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> | 2010-09-02 11:09:07 +0530 |
---|---|---|
committer | Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> | 2010-09-08 22:56:42 +0530 |
commit | 12848bfc5d719bad536c5448205a3226be1fda47 (patch) | |
tree | effc981bb557fd172a70e06eef5596cb17be51e0 /hw/file-op-9p.h | |
parent | 61b6c4994a6e4a8adf3bd0950fc4f6a2d23c0c1f (diff) | |
download | qemu-12848bfc5d719bad536c5448205a3226be1fda47.zip qemu-12848bfc5d719bad536c5448205a3226be1fda47.tar.gz qemu-12848bfc5d719bad536c5448205a3226be1fda47.tar.bz2 |
virtio-9p: Add SM_NONE security model
This is equivalent to SM_PASSTHROUGH security model.
The only exception is, failure of privilige operation like chown
are ignored. This makes a passthrough like security model usable
for people who runs kvm as non root
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Diffstat (limited to 'hw/file-op-9p.h')
-rw-r--r-- | hw/file-op-9p.h | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/hw/file-op-9p.h b/hw/file-op-9p.h index e54f358..017183d 100644 --- a/hw/file-op-9p.h +++ b/hw/file-op-9p.h @@ -24,8 +24,19 @@ typedef enum { - SM_PASSTHROUGH = 1, /* uid/gid set on fileserver files */ - SM_MAPPED, /* uid/gid part of xattr */ + /* + * Server will try to set uid/gid. + * On failure ignore the error. + */ + SM_NONE = 0, + /* + * uid/gid set on fileserver files + */ + SM_PASSTHROUGH = 1, + /* + * uid/gid part of xattr + */ + SM_MAPPED, } SecModel; typedef struct FsCred |