Revision fc22118d hw/virtio-9p.c
b/hw/virtio-9p.c | ||
---|---|---|
17 | 17 |
#include "virtio-9p.h" |
18 | 18 |
#include "fsdev/qemu-fsdev.h" |
19 | 19 |
#include "virtio-9p-debug.h" |
20 |
#include "virtio-9p-xattr.h" |
|
20 | 21 |
|
21 | 22 |
int debug_9p_pdu; |
22 | 23 |
|
... | ... | |
3712 | 3713 |
if (!strcmp(fse->security_model, "passthrough")) { |
3713 | 3714 |
/* Files on the Fileserver set to client user credentials */ |
3714 | 3715 |
s->ctx.fs_sm = SM_PASSTHROUGH; |
3716 |
s->ctx.xops = passthrough_xattr_ops; |
|
3715 | 3717 |
} else if (!strcmp(fse->security_model, "mapped")) { |
3716 | 3718 |
/* Files on the fileserver are set to QEMU credentials. |
3717 | 3719 |
* Client user credentials are saved in extended attributes. |
3718 | 3720 |
*/ |
3719 | 3721 |
s->ctx.fs_sm = SM_MAPPED; |
3722 |
s->ctx.xops = mapped_xattr_ops; |
|
3720 | 3723 |
} else if (!strcmp(fse->security_model, "none")) { |
3721 | 3724 |
/* |
3722 | 3725 |
* Files on the fileserver are set to QEMU credentials. |
3723 | 3726 |
*/ |
3724 | 3727 |
s->ctx.fs_sm = SM_NONE; |
3725 |
|
|
3728 |
s->ctx.xops = none_xattr_ops; |
|
3726 | 3729 |
} else { |
3727 | 3730 |
fprintf(stderr, "Default to security_model=none. You may want" |
3728 | 3731 |
" enable advanced security model using " |
3729 | 3732 |
"security option:\n\t security_model=passthrough \n\t " |
3730 | 3733 |
"security_model=mapped\n"); |
3731 | 3734 |
s->ctx.fs_sm = SM_NONE; |
3735 |
s->ctx.xops = none_xattr_ops; |
|
3732 | 3736 |
} |
3733 | 3737 |
|
3734 | 3738 |
if (lstat(fse->path, &stat)) { |
Also available in: Unified diff