60 lines
2.1 KiB
Diff
60 lines
2.1 KiB
Diff
From d802eba25e7c1304e5036684261bcf41540532d8 Mon Sep 17 00:00:00 2001
|
|
From: Nikolai Kondrashov <Nikolai.Kondrashov@redhat.com>
|
|
Date: Thu, 11 Aug 2016 14:15:55 +0300
|
|
Subject: [PATCH 06/93] BUILD: Support configuring session recording shell
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
Add support for specifying the shell used for recording user sessions,
|
|
at configure time.
|
|
|
|
Reviewed-by: Pavel Březina <pbrezina@redhat.com>
|
|
---
|
|
configure.ac | 1 +
|
|
src/conf_macros.m4 | 16 ++++++++++++++++
|
|
2 files changed, 17 insertions(+)
|
|
|
|
diff --git a/configure.ac b/configure.ac
|
|
index e8fe1d47e1803cc570295cf6512a3363e63c51c5..7037927b5f7045b29d3774c85758e00e35e6def6 100644
|
|
--- a/configure.ac
|
|
+++ b/configure.ac
|
|
@@ -139,6 +139,7 @@ WITH_SEMANAGE
|
|
WITH_AD_GPO_DEFAULT
|
|
WITH_GPO_CACHE_PATH
|
|
WITH_NOLOGIN_SHELL
|
|
+WITH_SESSION_RECORDING_SHELL
|
|
WITH_APP_LIBS
|
|
WITH_SUDO
|
|
WITH_SUDO_LIB_PATH
|
|
diff --git a/src/conf_macros.m4 b/src/conf_macros.m4
|
|
index 420997229cb3c244afd8fb21b074e43a21de0eda..2fa7ae9c4dec1007924f44a8d043909e378a6dd3 100644
|
|
--- a/src/conf_macros.m4
|
|
+++ b/src/conf_macros.m4
|
|
@@ -592,6 +592,22 @@ AC_DEFUN([WITH_NOLOGIN_SHELL],
|
|
AC_DEFINE_UNQUOTED(NOLOGIN_SHELL, "$nologin_shell", [The shell used to deny access to users])
|
|
])
|
|
|
|
+AC_DEFUN([WITH_SESSION_RECORDING_SHELL],
|
|
+ [ AC_ARG_WITH([session-recording-shell],
|
|
+ [AC_HELP_STRING([--with-session-recording-shell=PATH],
|
|
+ [The shell used to record user sessions [/usr/bin/tlog-rec-session]]
|
|
+ )
|
|
+ ]
|
|
+ )
|
|
+ session_recording_shell="/usr/bin/tlog-rec-session"
|
|
+ if test x"$with_session_recording_shell" != x; then
|
|
+ session_recording_shell=$with_session_recording_shell
|
|
+ fi
|
|
+ AC_SUBST(session_recording_shell)
|
|
+ AC_DEFINE_UNQUOTED(SESSION_RECORDING_SHELL, "$session_recording_shell",
|
|
+ [The shell used to record user sessions])
|
|
+ ])
|
|
+
|
|
AC_ARG_ENABLE([all-experimental-features],
|
|
[AS_HELP_STRING([--enable-all-experimental-features],
|
|
[build all experimental features])],
|
|
--
|
|
2.14.1
|
|
|