]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virSecuritySELinuxSetFileconHelper: Fix build with broken selinux.h
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 10 Jan 2017 15:33:58 +0000 (16:33 +0100)
committerAndrea Bolognani <abologna@redhat.com>
Tue, 10 Jan 2017 18:23:49 +0000 (19:23 +0100)
commit3027bacf959fe355f7a36ed255f1865be33ca64b
tree1654d00efc61427219fcffc9d8a22887dbfc671c
parent269589146c45e9a5e412b6504fb4e5543365c672
virSecuritySELinuxSetFileconHelper: Fix build with broken selinux.h

There are still some systems out there that have broken
setfilecon*() prototypes. Instead of taking 'const char *tcon' it
is taking 'char *tcon'. The function should just set the context,
not modify it.

We had been bitten with this problem before which resulted in
292d3f2d and subsequently b109c09765. However, with one my latest
commits (4674fc6afd6d) I've changed the type of @tcon variable to
'const char *' which results in build failure on the systems from
above.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/security/security_selinux.c