]> git.ipfire.org Git - thirdparty/libvirt.git/commit
selinux: Drop dead code in virSecuritySELinuxSetImageLabelInternal()
authorSergey Mironov <mironov@fintech.ru>
Wed, 11 Oct 2023 14:31:55 +0000 (17:31 +0300)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 20 Oct 2023 08:44:38 +0000 (10:44 +0200)
commita97b42820808e8cc8e89e362efe1a53334c09d8c
tree60d73365ac4896ac374601c60734b48825847fde
parentc80f0852ca385b82dcc7057c002e2c6730c64199
selinux: Drop dead code in virSecuritySELinuxSetImageLabelInternal()

Considering that at the virSecuritySELinuxSetFilecon() function can only
return 0 or -1 and so does the virSecuritySELinuxFSetFilecon(), the check
for '1' at the end of virSecuritySELinuxSetImageLabelInternal() is
effectively a dead code. Drop it.

Co-developed-by: sdl.qemu <sdl.qemu@linuxtesting.org>
Signed-off-by: Sergey Mironov <mironov@fintech.ru>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/security/security_selinux.c