]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Do not generate security_model when fs driver is anything but 'path'
authorDeepak C Shetty <deepakcs@linux.vnet.ibm.com>
Tue, 10 Jan 2012 12:53:31 +0000 (18:23 +0530)
committerEric Blake <eblake@redhat.com>
Wed, 11 Jan 2012 20:48:52 +0000 (13:48 -0700)
commit99fbb3866c1ea7564bf757d79d9ccd520488be98
tree1b08056c7c0bd80dd0d3be8579317964ea4cf385
parent52d064f42dbc857f4096dc60c0335395ffac73aa
Do not generate security_model when fs driver is anything but 'path'

QEMU does not support security_model for anything but 'path' fs driver type.
Currently in libvirt, when security_model ( accessmode attribute) is not
specified it auto-generates it irrespective of the fs driver type, which
can result in a qemu error for drivers other than path. This patch ensures
that the qemu cmdline is correctly generated by taking into account the
fs driver type.

Signed-off-by: Deepak C Shetty <deepakcs@linux.vnet.ibm.com>
AUTHORS
src/qemu/qemu_command.c
tests/qemuxml2argvdata/qemuxml2argv-fs9p.args
tests/qemuxml2argvdata/qemuxml2argv-fs9p.xml