aboutsummaryrefslogtreecommitdiff
path: root/mk/pam.mk
diff options
context:
space:
mode:
Diffstat (limited to 'mk/pam.mk')
-rw-r--r--mk/pam.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/mk/pam.mk b/mk/pam.mk
index 15ffb546..199896cc 100644
--- a/mk/pam.mk
+++ b/mk/pam.mk
@@ -3,6 +3,12 @@ LIBPAM?= -lpam
CPPFLAGS+= -DHAVE_PAM
LDADD+= ${LIBPAM}
+ifeq (${MKSELINUX},yes)
+# with selinux, pam_misc is needed too
+LIBPAM_MISC?= -lpam_misc
+LDADD+= ${LIBPAM_MISC}
+endif
+
PAMDIR?= /etc/pam.d
PAMMODE?= 0644
else ifneq (${MKPAM},)