]> git.ipfire.org Git - thirdparty/libvirt.git/commit
security: Fix comparison for virSecuritySELinuxRecallLabel
authorJohn Ferlan <jferlan@redhat.com>
Thu, 20 Dec 2018 21:30:24 +0000 (16:30 -0500)
committerJohn Ferlan <jferlan@redhat.com>
Fri, 21 Dec 2018 11:03:44 +0000 (06:03 -0500)
commit9d42d51eef793d7cbbf03801922c47fa3566d441
treea01c00be44fe3801cd6b7f9065a5e0256c05d421
parent458b952beefa6218d75964d1c43da60ca9d60d07
security: Fix comparison for virSecuritySELinuxRecallLabel

The @con type security_context_t is actually a "char *", so the
correct check should be to dereference one more level; otherwise,
we could return/use the NULL pointer later in a subsequent
virSecuritySELinuxSetFileconImpl call (using @fcon).

Suggested-by: Michal Prívozník <mprivozn@redhat.com>
Signed-off-by: John Ferlan <jferlan@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/security/security_selinux.c