mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-10 11:04:58 -06:00
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>
This commit is contained in:
parent
61b6c4994a
commit
12848bfc5d
5 changed files with 55 additions and 18 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue