|
@@ -5,12 +5,13 @@ Upstream-Status: Pending
|
|
|
|
|
|
Signed-off-by: Ming Liu <ming.liu@windriver.com>
|
|
|
===================================================================
|
|
|
-diff -urpN a/modules/pam_securetty/Makefile.am b/modules/pam_securetty/Makefile.am
|
|
|
---- a/modules/pam_securetty/Makefile.am 2013-07-05 11:08:23.224483237 +0800
|
|
|
-+++ b/modules/pam_securetty/Makefile.am 2013-07-05 11:15:21.304486456 +0800
|
|
|
+Index: Linux-PAM-1.3.0/modules/pam_securetty/Makefile.am
|
|
|
+===================================================================
|
|
|
+--- Linux-PAM-1.3.0.orig/modules/pam_securetty/Makefile.am
|
|
|
++++ Linux-PAM-1.3.0/modules/pam_securetty/Makefile.am
|
|
|
@@ -24,6 +24,10 @@ endif
|
|
|
securelib_LTLIBRARIES = pam_securetty.la
|
|
|
- pam_securetty_la_LIBADD = -L$(top_builddir)/libpam -lpam
|
|
|
+ pam_securetty_la_LIBADD = $(top_builddir)/libpam/libpam.la
|
|
|
|
|
|
+pam_securetty_la_SOURCES = \
|
|
|
+ pam_securetty.c \
|
|
@@ -19,9 +20,10 @@ diff -urpN a/modules/pam_securetty/Makefile.am b/modules/pam_securetty/Makefile.
|
|
|
if ENABLE_REGENERATE_MAN
|
|
|
noinst_DATA = README
|
|
|
README: pam_securetty.8.xml
|
|
|
-diff -urpN a/modules/pam_securetty/pam_securetty.c b/modules/pam_securetty/pam_securetty.c
|
|
|
---- a/modules/pam_securetty/pam_securetty.c 2013-07-05 11:07:50.064483568 +0800
|
|
|
-+++ b/modules/pam_securetty/pam_securetty.c 2013-07-05 11:12:23.994483344 +0800
|
|
|
+Index: Linux-PAM-1.3.0/modules/pam_securetty/pam_securetty.c
|
|
|
+===================================================================
|
|
|
+--- Linux-PAM-1.3.0.orig/modules/pam_securetty/pam_securetty.c
|
|
|
++++ Linux-PAM-1.3.0/modules/pam_securetty/pam_securetty.c
|
|
|
@@ -1,7 +1,5 @@
|
|
|
/* pam_securetty module */
|
|
|
|
|
@@ -104,9 +106,10 @@ diff -urpN a/modules/pam_securetty/pam_securetty.c b/modules/pam_securetty/pam_s
|
|
|
|
|
|
if (retval && !(ctrl & PAM_NOCONSOLE_ARG)) {
|
|
|
FILE *cmdlinefile;
|
|
|
-diff -urpN a/modules/pam_securetty/tty_secure.c b/modules/pam_securetty/tty_secure.c
|
|
|
---- a/modules/pam_securetty/tty_secure.c 1970-01-01 08:30:00.000000000 +0830
|
|
|
-+++ b/modules/pam_securetty/tty_secure.c 2013-07-05 11:14:21.534482900 +0800
|
|
|
+Index: Linux-PAM-1.3.0/modules/pam_securetty/tty_secure.c
|
|
|
+===================================================================
|
|
|
+--- /dev/null
|
|
|
++++ Linux-PAM-1.3.0/modules/pam_securetty/tty_secure.c
|
|
|
@@ -0,0 +1,90 @@
|
|
|
+/*
|
|
|
+ * A function to determine if a particular line is in /etc/securetty
|