]> git.ipfire.org Git - thirdparty/libvirt.git/commit
maint: cleanup detection of const'ness of selinux ctx
authorJim Fehlig <jfehlig@suse.com>
Wed, 28 May 2014 19:48:21 +0000 (13:48 -0600)
committerEric Blake <eblake@redhat.com>
Tue, 23 Dec 2014 17:31:14 +0000 (10:31 -0700)
commit3e626db568e6169a1f6134fd1ab434960ed9bb66
tree6e5eda5322c0ed9e9d749f25da93e72c00af2346
parent71cd33b009e2af34805fa9a2db1279682ab855d9
maint: cleanup detection of const'ness of selinux ctx

Commit 292d3f2d fixed the build with libselinux 2.3, but missed
some suggestions by eblake

https://www.redhat.com/archives/libvir-list/2014-May/msg00977.html

This patch changes the macro introduced in 292d3f2d to either be
empty in the case of newer libselinux, or contain 'const' in the
case of older libselinux.  The macro is then used directly in
tests/securityselinuxhelper.c.

(cherry picked from commit b109c097654c4fe003e8535481191f37a35d5d7b)
m4/virt-selinux.m4
tests/securityselinuxhelper.c