diff options
author | Eugene Syromyatnikov <evgsyr@gmail.com> | 2021-07-31 15:17:41 +0200 |
---|---|---|
committer | Dmitry V. Levin <ldv@strace.io> | 2021-07-31 13:17:41 +0000 |
commit | 9623154df042ee09c4f00351cd7aa954426a47da (patch) | |
tree | fa0198c3d91dc826c6c5a10de7c0e9e2361f1c13 | |
parent | 8f60e7b19ec7c797314bf9495cea0cf6e25275b9 (diff) | |
download | strace-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.m4 | 4 |
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" |