summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Syromyatnikov <evgsyr@gmail.com>2021-07-31 15:17:41 +0200
committerDmitry V. Levin <ldv@strace.io>2021-07-31 13:17:41 +0000
commit9623154df042ee09c4f00351cd7aa954426a47da (patch)
treefa0198c3d91dc826c6c5a10de7c0e9e2361f1c13
parent8f60e7b19ec7c797314bf9495cea0cf6e25275b9 (diff)
downloadstrace-9623154df042ee09c4f00351cd7aa954426a47da.tar.gz
m4/mpers.m4: generate HAVE_*_SELINUX_RUNTIME config defines
While bootstrap has some provisions for mangling HAVE_SELINUX_RUNTIME into HAVE_{M32,MX32}_SELINUX_RUNTIME, and there is logic for checking SELinux runtime presence in non-native personalities, the relevant configuration definition is not ultimately generated, as it has to be defined explicitly, similarly to HAVE_*_MPERS. * m4/mpers.m4 (st_MPERS) [$st_cv_selinux_runtime == yes]: AC_DEFINE HAVE_SELINUX_RUNTIME. Complements: v5.12~49 "Implement --secontext[=full] option to display SELinux contexts"
-rw-r--r--m4/mpers.m44
1 files changed, 4 insertions, 0 deletions
diff --git a/m4/mpers.m4 b/m4/mpers.m4
index e7e514948..316951f48 100644
--- a/m4/mpers.m4
+++ b/m4/mpers.m4
@@ -181,6 +181,10 @@ case "$arch" in
popdef([SIZEOF_STRUCT_MSQID64_DS])
fi
fi
+ if test "x$st_cv_selinux_runtime" = xyes; then
+ AC_DEFINE([HAVE_SELINUX_RUNTIME], [1],
+ [Define to enable SELinux security contexts testing for ]mpers_name[ personality])
+ fi
fi
CPPFLAGS="$saved_CPPFLAGS"
CFLAGS="$saved_CFLAGS"