Skip to content

Commit

Permalink
BUILD: Support configuring session recording shell
Browse files Browse the repository at this point in the history
Add support for specifying the shell used for recording user sessions,
at configure time.

Reviewed-by: Pavel Březina <[email protected]>
  • Loading branch information
spbnick authored and jhrozek committed Jul 27, 2017
1 parent 555f43b commit d802eba
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
16 changes: 16 additions & 0 deletions src/conf_macros.m4
Original file line number Diff line number Diff line change
Expand Up @@ -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])],
Expand Down

0 comments on commit d802eba

Please sign in to comment.