[libvirt] [PATCH] qemu: Don't crash when create fails early

Pavel Hrdina phrdina at redhat.com
Tue Feb 2 21:56:28 UTC 2016


On Tue, Feb 02, 2016 at 10:26:20PM +0100, Martin Kletzander wrote:
> 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 at redhat.com>
> ---
>  src/security/security_selinux.c | 6 ++++++
>  1 file changed, 6 insertions(+)

ACK




More information about the libvir-list mailing list