aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvorlon <Unknown>2007-08-27 07:38:05 +0000
committervorlon <Unknown>2007-08-27 07:38:05 +0000
commit382ee58d850bf3f82d87835587d46b62cbf69cb0 (patch)
treeac77a167a8456ba340b913ca35bc13e893dea7a2
parente1c52f6552affb026e1205818b296282973a9a45 (diff)
downloadpam-382ee58d850bf3f82d87835587d46b62cbf69cb0.tar.gz
pam-382ee58d850bf3f82d87835587d46b62cbf69cb0.tar.bz2
pam-382ee58d850bf3f82d87835587d46b62cbf69cb0.zip
New patch misc_conv_allow_sigint.patch: allow SIGINT to be handled by the
application, instead of blocking it when misc_conv is in use and preventing users from being able to ^C at any PAM prompt. Closes: #1708.
-rw-r--r--changelog12
-rw-r--r--patches-applied/misc_conv_allow_sigint.patch28
-rw-r--r--patches-applied/series1
3 files changed, 37 insertions, 4 deletions
diff --git a/changelog b/changelog
index ac37185f..ce66f5cb 100644
--- a/changelog
+++ b/changelog
@@ -1,9 +1,13 @@
pam (0.99.7.1-3) UNRELEASED; urgency=low
- * Fix unnecessary manipulations of string buffers, including an illegal use
- of strncpy(). Thanks to Paul Hampson for reporting. Closes: #331278.
-
- -- Steve Langasek <vorlon@debian.org> Sun, 26 Aug 2007 20:51:28 -0700
+ * New patch limits_wrong_strncpy: fix unnecessary manipulations of string
+ buffers, including an illegal use of strncpy(). Thanks to Paul Hampson
+ for reporting. Closes: #331278.
+ * New patch misc_conv_allow_sigint.patch: allow SIGINT to be handled by the
+ application, instead of blocking it when misc_conv is in use and
+ preventing users from being able to ^C at any PAM prompt. Closes: #1708.
+
+ -- Steve Langasek <vorlon@debian.org> Mon, 27 Aug 2007 00:00:01 -0700
pam (0.99.7.1-2) unstable; urgency=low
diff --git a/patches-applied/misc_conv_allow_sigint.patch b/patches-applied/misc_conv_allow_sigint.patch
new file mode 100644
index 00000000..4742dcce
--- /dev/null
+++ b/patches-applied/misc_conv_allow_sigint.patch
@@ -0,0 +1,28 @@
+Patch for Debian bug #1708
+
+Don't block SIGINT in misc_conv, it's perfectly valid to allow the user
+to interrupt at a prompt if the application hasn't otherwise blocked the
+signal.
+
+Authors: Steve Langasek <vorlon@debian.org>
+
+Upstream status: not yet submitted
+
+Index: pam/Linux-PAM/libpam_misc/misc_conv.c
+===================================================================
+--- pam.orig/Linux-PAM/libpam_misc/misc_conv.c
++++ pam/Linux-PAM/libpam_misc/misc_conv.c
+@@ -150,12 +150,11 @@
+ have_term = 1;
+
+ /*
+- * We make a simple attempt to block TTY signals from terminating
++ * We make a simple attempt to block TTY signals from suspending
+ * the conversation without giving PAM a chance to clean up.
+ */
+
+ sigemptyset(&nset);
+- sigaddset(&nset, SIGINT);
+ sigaddset(&nset, SIGTSTP);
+ (void) sigprocmask(SIG_BLOCK, &nset, &oset);
+
diff --git a/patches-applied/series b/patches-applied/series
index 670ed775..9436e3c2 100644
--- a/patches-applied/series
+++ b/patches-applied/series
@@ -30,4 +30,5 @@ hurd_no_setfsuid -p0
PAM-manpage-section
no_pthread_mutexes
limits_wrong_strncpy
+misc_conv_allow_sigint.patch
autoconf.patch