]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: Require nvdimm path in validate step
authorMichal Privoznik <mprivozn@redhat.com>
Wed, 4 Nov 2020 15:09:39 +0000 (16:09 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 4 Dec 2020 15:24:19 +0000 (16:24 +0100)
commit6e4fbc97ff36688b3df5bbde1a94d18c0b6d780e
treed0bc12083b42edbb78f8a2cfc3a0ba186bac65e8
parent13643954e83936b1d44eca5645bf8e5a3caca568
conf: Require nvdimm path in validate step

Our code expects that a nvdimm has a path defined always. And the
parser does check for that. Well, not fully - only when parsing
<source/> (which is an optional element). So if the element is
not in the XML then the check is not performed and the assumption
is broken. Verify in the memory def validator that a path was
set.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Tested-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Tested-by: Han Han <hhan@redhat.com>
src/conf/domain_conf.c
src/security/security_apparmor.c