diff options
author | Tobias Stoeckmann <tobias@stoeckmann.org> | 2024-01-14 18:28:19 +0100 |
---|---|---|
committer | Tobias Stoeckmann <tobias@stoeckmann.org> | 2024-01-15 18:18:00 +0100 |
commit | 43f35ea9e6ea77bd51ec609d3889af227d58ebc8 (patch) | |
tree | 11bfdb851adb5a5225d397a3c4d3f3815921c77c /modules/pam_pwhistory | |
parent | 4367ace03d0c7997038662fac89757887cdc5fff (diff) | |
download | pam-43f35ea9e6ea77bd51ec609d3889af227d58ebc8.tar.gz pam-43f35ea9e6ea77bd51ec609d3889af227d58ebc8.tar.bz2 pam-43f35ea9e6ea77bd51ec609d3889af227d58ebc8.zip |
pam_pwhistory: build pwhistory_helper only with SELinux enabled
Apply the same logic of pam_unix Makefile adjustment for
pw_history as well. Reference commit is
cb9f88ba944d56c0b6c65be18500f7d56c9f514c.
The helper pwhistory_helper(8) is only called from code enabled when
SELinux support is enabled.
Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
Diffstat (limited to 'modules/pam_pwhistory')
-rw-r--r-- | modules/pam_pwhistory/Makefile.am | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/modules/pam_pwhistory/Makefile.am b/modules/pam_pwhistory/Makefile.am index 3fb705e9..e6c6a9eb 100644 --- a/modules/pam_pwhistory/Makefile.am +++ b/modules/pam_pwhistory/Makefile.am @@ -9,10 +9,17 @@ MAINTAINERCLEANFILES = $(MANS) README EXTRA_DIST = $(XMLS) if HAVE_DOC -dist_man_MANS = pam_pwhistory.8 pwhistory_helper.8 pwhistory.conf.5 +dist_man_MANS = pam_pwhistory.8 pwhistory.conf.5 +if WITH_SELINUX +dist_man_MANS += pwhistory_helper.8 endif -XMLS = README.xml pam_pwhistory.8.xml pwhistory_helper.8.xml \ - pwhistory.conf.5.xml +endif + +XMLS = README.xml pam_pwhistory.8.xml pwhistory.conf.5.xml +if WITH_SELINUX +XMLS += pwhistory_helper.8.xml +endif + dist_check_SCRIPTS = tst-pam_pwhistory TESTS = $(dist_check_SCRIPTS) $(check_PROGRAMS) @@ -40,11 +47,13 @@ pam_pwhistory_la_CFLAGS = $(AM_CFLAGS) pam_pwhistory_la_LIBADD = $(top_builddir)/libpam/libpam.la @LIBCRYPT@ @LIBSELINUX@ pam_pwhistory_la_SOURCES = pam_pwhistory.c opasswd.c pwhistory_config.c +if WITH_SELINUX sbin_PROGRAMS = pwhistory_helper pwhistory_helper_CFLAGS = $(AM_CFLAGS) -DHELPER_COMPILE=\"pwhistory_helper\" @EXE_CFLAGS@ pwhistory_helper_SOURCES = pwhistory_helper.c opasswd.c pwhistory_helper_LDFLAGS = @EXE_LDFLAGS@ pwhistory_helper_LDADD = $(top_builddir)/libpam/libpam.la @LIBCRYPT@ +endif check_PROGRAMS = tst-pam_pwhistory-retval tst_pam_pwhistory_retval_LDADD = $(top_builddir)/libpam/libpam.la |