mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-26 20:03:54 -06:00
9pfs: local: Add support for custom fmode/dmode in 9ps mapped security modes
In mapped security modes, files are created with very restrictive permissions (600 for files and 700 for directories). This makes file sharing between virtual machines and users on the host rather complicated. Imagine eg. a group of users that need to access data produced by processes on a virtual machine. Giving those users access to the data will be difficult since the group access mode is always 0. This patch makes the default mode for both files and directories configurable. Existing setups that don't know about the new parameters keep using the current secure behavior. Signed-off-by: Tobias Schramm <tobleminer@gmail.com> Signed-off-by: Greg Kurz <groug@kaod.org>
This commit is contained in:
parent
790db7efdb
commit
b96feb2cb9
5 changed files with 56 additions and 8 deletions
|
@ -38,6 +38,12 @@ static QemuOptsList qemu_fsdev_opts = {
|
|||
}, {
|
||||
.name = "sock_fd",
|
||||
.type = QEMU_OPT_NUMBER,
|
||||
}, {
|
||||
.name = "fmode",
|
||||
.type = QEMU_OPT_NUMBER,
|
||||
}, {
|
||||
.name = "dmode",
|
||||
.type = QEMU_OPT_NUMBER,
|
||||
},
|
||||
|
||||
THROTTLE_OPTS,
|
||||
|
@ -75,6 +81,12 @@ static QemuOptsList qemu_virtfs_opts = {
|
|||
}, {
|
||||
.name = "sock_fd",
|
||||
.type = QEMU_OPT_NUMBER,
|
||||
}, {
|
||||
.name = "fmode",
|
||||
.type = QEMU_OPT_NUMBER,
|
||||
}, {
|
||||
.name = "dmode",
|
||||
.type = QEMU_OPT_NUMBER,
|
||||
},
|
||||
|
||||
{ /*End of list */ }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue