]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: move seclabel validation into post-parse phase
authorDaniel P. Berrangé <berrange@redhat.com>
Tue, 26 Nov 2019 18:42:56 +0000 (18:42 +0000)
committerDaniel P. Berrangé <berrange@redhat.com>
Mon, 9 Dec 2019 10:15:16 +0000 (10:15 +0000)
commit99a949ffc45228aca3f7522870667e6a8461326b
tree275c1142b0409e21ad92f7ecae1abeded402aa38
parenta7b6e49d00571b35703daf6e3b758474dbc41273
conf: move seclabel validation into post-parse phase

Currently the disk and chardev seclabels are validated immediately at
the time their data is parsed. This forces the parser to fill in the
top level secmodel at time of parsing which is an undesirable thing.
This validation conceptually should be done in the post-parse phase
instead.

Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
src/conf/domain_conf.c
src/conf/domain_conf.h
src/qemu/qemu_driver.c
tests/qemublocktest.c