Re: [PATCH v2 06/27] conf: Require nvdimm path in validate step

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Dec 03, 2020 at 13:36:09 +0100, Michal Privoznik wrote:
> 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@xxxxxxxxxx>
> ---
>  src/conf/domain_conf.c           | 12 +++++++-----
>  src/security/security_apparmor.c |  6 ------
>  2 files changed, 7 insertions(+), 11 deletions(-)

We don't validate existing configs, but removing the apparmor check is
okay since you can't have an running VM with broken config due to it and
the check will be done when starting the VM.

Reviewed-by: Peter Krempa <pkrempa@xxxxxxxxxx>




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux