aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2015-02-13 22:26:41 -0500
committerMike Frysinger <vapier@gentoo.org>2015-02-13 22:26:41 -0500
commit3013c8e7ab5aee1fa45a0fa6d662b37d08698530 (patch)
tree2d5c721d03bb57c1a41c83129f452460e9b96f7b
parentUse xz instead of bzip2 for dist. (diff)
downloadpambase-3013c8e7ab5aee1fa45a0fa6d662b37d08698530.tar.gz
pambase-3013c8e7ab5aee1fa45a0fa6d662b37d08698530.tar.bz2
pambase-3013c8e7ab5aee1fa45a0fa6d662b37d08698530.zip
make securetty optional
URL: https://bugs.gentoo.org/539508
-rw-r--r--Makefile4
-rw-r--r--login.in2
2 files changed, 6 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 574d0d1..339de62 100644
--- a/Makefile
+++ b/Makefile
@@ -36,6 +36,10 @@ ifeq "$(GNOME_KEYRING)" "yes"
PAMFLAGS += -DHAVE_GNOME_KEYRING=1
endif
+ifeq "$(SECURETTY)" "yes"
+PAMFLAGS += -DHAVE_SECURETTY=1
+endif
+
ifeq "$(SELINUX)" "yes"
PAMFLAGS += -DHAVE_SELINUX=1
endif
diff --git a/login.in b/login.in
index 14165a2..5067bc7 100644
--- a/login.in
+++ b/login.in
@@ -1,4 +1,6 @@
+#if HAVE_SECURETTY
auth required pam_securetty.so
+#endif
auth include system-local-login
account include system-local-login