Skip to content

Fix selinux gating to avoid breakage on systems that have security_get_boolean_active but not selinux.h

This fixes builds on ChromeOS, which responds to AC_CHECK_LIB(selinux, security_get_boolean_active) but not AC_CHECK_HEADERS(selinux/selinux.h):

checking for selinux/selinux.h... no
checking for security_get_boolean_active in -lselinux... yes
......
trace.c:42:11: fatal error: selinux/selinux.h: No such file or directory
   42 | # include <selinux/selinux.h>
      |           ^~~~~~~~~~~~~~~~~~~
compilation terminated.

Merge request reports

Loading