summaryrefslogtreecommitdiffstats
path: root/src/external
diff options
context:
space:
mode:
Diffstat (limited to 'src/external')
-rw-r--r--src/external/selinux.m49
1 files changed, 9 insertions, 0 deletions
diff --git a/src/external/selinux.m4 b/src/external/selinux.m4
index d1b961a49..1f41b3128 100644
--- a/src/external/selinux.m4
+++ b/src/external/selinux.m4
@@ -23,3 +23,12 @@ AC_DEFUN([AM_CHECK_SEMANAGE],
[AC_MSG_ERROR([libsemanage is missing])])
AC_SUBST(SEMANAGE_LIBS)
])
+
+dnl Check if the SELinux login directory exists
+AC_DEFUN([AM_CHECK_SELINUX_LOGIN_DIR],
+[
+ AC_CHECK_FILE(/etc/selinux/targeted/logins/,
+ [AC_DEFINE([HAVE_SELINUX_LOGIN_DIR], [1],
+ [The directory to store SELinux user login is available])],
+ [AC_MSG_WARN([SELinux login directory is not available])])
+])