Add logic to validate and then pass through 'fmode' and 'dmode' to the
QEMU call.
Signed-off-by: Brian Turek
---
src/qemu/qemu_command.c | 6 +++
src/qemu/qemu_validate.c | 18
.../virtio-9p-createmode.x86_6
Expose QEMU's 9pfs 'fmode' and 'dmode' options via attributes on the
'filesystem' node in the domain XML. These options control the creation
mode of files and directories, respectively, when using
accessmode=mapped.
Signed-off-by: Brian Turek
Adds documentation for QEMU 9pfs 'fmode' and 'dmode' options.
Signed-off-by: Brian Turek
---
docs/formatdomain.rst | 13 +
1 file changed, 13 insertions(+)
diff --git a/docs/formatdomain.rst b/docs/formatdomain.rst
index cc4f91d4ea..48a5b821bd 100644
--- a/d
The QEMU 9pfs 'fmode' and 'dmode' options have existed since QEMU 2.10.
Probe QEMU's command line set to check whether these options are
available, and if yes, enable this new QEMU_CAPS_FSDEV_CREATEMODE
capability on libvirt side.
Signed-off-by: Brian Turek
---
Note th
ning being that it is essentially enforcing the schema rather than
performing QEMU-specific validation.
Brian Turek (4):
qemu: capabilities: add QEMU_CAPS_FSDEV_CREATEMODE
qemu: add 'fmode' and 'dmode' options
qemu: add support for 'fmode' and 'dmode'
Peter Krempa wrote:
> Since the qemu command line option is formatted as 4 octal digits, a
> mode such as '1775' which is a valid mode for a directory will still be
> formatted as something which looks like a decimal number:
>
> -fsdev
local,security_model=mapped,dmode=1775,id=fsdev-fs1,path=/expor
The QEMU 9pfs 'fmode' and 'dmode' options have existed since QEMU 2.10.
Probe QEMU's command line set to check whether these options are
available, and if yes, enable this new QEMU_CAPS_FSDEV_CREATEMODE
capability on libvirt side.
Signed-off-by: Brian Turek
---
src
0600 and
directories with mode 0700.
Signed-off-by: Brian Turek
---
src/conf/domain_conf.c| 27
src/conf/domain_conf.h| 2 +
src/qemu/qemu_command.c | 6 ++
src/qemu/qemu_validate.c | 18
Adds schema to validate the 'fmode' and 'dmode' attributes on a
'fileystem' node. Checks to ensure that the values are 1-4 octal
digits long.
Signed-off-by: Brian Turek
---
docs/schemas/domaincommon.rng | 16
1 file changed, 16 insertions
on ensures there is always a preceeding 0 in the QEMU args (using
%04o formatting) and explictly sets it in the generated XML.
Brian Turek (4):
qemu: capabilities: add QEMU_CAPS_FSDEV_CREATEMODE
qemu: add support for 'fmode' and 'dmode' options
qemu: add schema 'fmode
Adds documentation for QEMU 9pfs 'fmode' and 'dmode' options.
Signed-off-by: Brian Turek
---
docs/formatdomain.rst | 12
1 file changed, 12 insertions(+)
diff --git a/docs/formatdomain.rst b/docs/formatdomain.rst
index cc4f91d4ea..085f29ef8f 100644
--- a/d
Adds schema to validate the 'fmode' and 'dmode' attributes on a
'fileystem' node. Checks to ensure that the values are 1-4 octal
digits long.
Signed-off-by: Brian Turek
---
docs/schemas/domaincommon.rng | 16
1 file changed, 16 insertions
0600 and
directories with mode 0700.
Signed-off-by: Brian Turek
---
src/conf/domain_conf.c| 27
src/conf/domain_conf.h| 2 +
src/qemu/qemu_command.c | 6 ++
src/qemu/qemu_validate.c | 18
The QEMU 9pfs 'fmode' and 'dmode' options have existed since QEMU 2.10.
Probe QEMU's command line set to check whether these options are
available, and if yes, enable this new QEMU_CAPS_FSDEV_CREATEMODE
capability on libvirt side.
Signed-off-by: Brian Turek
---
src
Adds documentation for QEMU 9pfs 'fmode' and 'dmode' options.
Signed-off-by: Brian Turek
---
docs/formatdomain.rst | 12
1 file changed, 12 insertions(+)
diff --git a/docs/formatdomain.rst b/docs/formatdomain.rst
index cc4f91d4ea..085f29ef8f 100644
--- a/d
I did some further testing and it appears that QEMU is reading the flags as
base-10 which causes issues. I'll need to make some tweaks and release a v3
of the patches later today.
Please ignore this set.
On Fri, Oct 2, 2020, 11:55 AM Brian Turek wrote:
> This second version of t
Adds schema to validate the 'fmode' and 'dmode' attributes on a
'fileystem' node. Checks to ensure that the values are 1-3 octal
digits long.
Signed-off-by: Brian Turek
---
docs/schemas/domaincommon.rng | 16
1 file changed, 16 insertions
e 600 and
directories with mode 700.
Signed-off-by: Brian Turek
---
src/conf/domain_conf.c| 27
src/conf/domain_conf.h| 2 +
src/qemu/qemu_command.c | 6 ++
src/qemu/qemu_validate.c | 18
This second version of the patch incorporates Peter Krempa's feedback
by tweaking a few things in the code and, more importantly, splitting
up the singular large patch into smaller patches.
Brian Turek (4):
qemu: capabilities: add QEMU_CAPS_FSDEV_CREATEMODE
qemu: add support for '
Adds documentation for QEMU 9pfs 'fmode' and 'dmode' options.
Signed-off-by: Brian Turek
---
docs/formatdomain.rst | 12
1 file changed, 12 insertions(+)
diff --git a/docs/formatdomain.rst b/docs/formatdomain.rst
index f3cf9e1fb3..88d836da08 100644
--- a/d
The QEMU 9pfs 'fmode' and 'dmode' options exists since QEMU 2.10. Probe
QEMU's command line set to check whether these options are really
available, and if yes, enable this new QEMU_CAPS_FSDEV_CREATEMODE
capability on libvirt side.
Signed-off-by: Brian Turek
---
src
or files and 700
for directories.
Signed-off-by: Brian Turek
---
docs/formatdomain.rst | 12
docs/schemas/domaincommon.rng | 16 +
src/conf/domain_conf.c| 43 +
src/conf/domain_conf.h
hether modifying all of the 'caps'
files was necessary or if only a certain few needed changing.
Brian Turek (1):
qemu: add support for 'fmode' and 'dmode'
docs/formatdomain.rst | 12
docs/schemas/domaincommon.rng
Hello All,
I recently ran into problems with the default very restrictive permissions
for files that are created via 9pfs host/guest shares (600 for files, 700
for directories). QEMU added two new-ish flags, fmode and dmode, to its
9pfs implementation so that users are able to control these exact
24 matches
Mail list logo