selinux: do preprocessor check only in selinux-access.c
authorMichal Sekletár <msekleta@redhat.com>
Fri, 3 Apr 2020 07:13:59 +0000 (09:13 +0200)
committerMichal Sekletár <msekleta@redhat.com>
Wed, 29 Apr 2020 11:56:40 +0000 (13:56 +0200)
commit08deac6e3e9119aeb966375f94695e4aa14ffb1c
tree2635065f4fc7394a8a5acd15f240439680884796
parente83ef04d972f6970945d58b9a310df555871c418
selinux: do preprocessor check only in selinux-access.c

This has the advantage that mac_selinux_access_check() can be used as a
function in all contexts. For example, parameters passed to it won't be
reported as unused if the "function" call is replaced with 0 on SELinux
disabled builds.
src/core/selinux-access.h