commit:     3013c8e7ab5aee1fa45a0fa6d662b37d08698530
Author:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
AuthorDate: Sat Feb 14 03:26:41 2015 +0000
Commit:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Sat Feb 14 03:26:41 2015 +0000
URL:        
http://sources.gentoo.org/gitweb/?p=proj/pambase.git;a=commit;h=3013c8e7

make securetty optional

URL: https://bugs.gentoo.org/539508

---
 Makefile | 4 ++++
 login.in | 2 ++
 2 files changed, 6 insertions(+)

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

Reply via email to