]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Don't crash when create fails early
authorMartin Kletzander <mkletzan@redhat.com>
Tue, 2 Feb 2016 21:08:59 +0000 (22:08 +0100)
committerMartin Kletzander <mkletzan@redhat.com>
Wed, 3 Feb 2016 10:01:42 +0000 (11:01 +0100)
commit1794a0103ae4fa91d9c11617e7981471173e27ce
tree9adc98b0a64f208ac6e4abee8516c414ed953874
parent1fe6d8bfa81c8243516e38e81c31645049cb54e2
qemu: Don't crash when create fails early

Since commit 714080791778e3dfbd484ccb3953bffd820b8ba9 we are generating
socket path later than before -- when starting a domain.  That makes one
particular inconsistent state of a chardev, which was not possible
before, currently valid.  However, SELinux security driver forgot to
guard the main restoring function by a check for NULL-paths.  So make it
no-op for NULL paths, as in the DAC driver.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1300532

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
src/security/security_selinux.c