From: "Ulrich Müller" <ulm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] dev/ulm:master commit in: patchsets/pam_skey/1.1.5/
Date: Fri, 4 Sep 2015 08:29:50 +0000 (UTC) [thread overview]
Message-ID: <1377512220.32be7fcd5b3c5f784c4152c9651a4353ffa6e114.ulm@gentoo> (raw)
commit: 32be7fcd5b3c5f784c4152c9651a4353ffa6e114
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Mon Aug 26 10:17:00 2013 +0000
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Mon Aug 26 10:17:00 2013 +0000
URL: https://gitweb.gentoo.org/dev/ulm.git/commit/?id=32be7fcd
Improve handling of skey_haskey return status.
patchsets/pam_skey/1.1.5/04_all_haskey_error.patch | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/patchsets/pam_skey/1.1.5/04_all_haskey_error.patch b/patchsets/pam_skey/1.1.5/04_all_haskey_error.patch
new file mode 100644
index 0000000..365b5c7
--- /dev/null
+++ b/patchsets/pam_skey/1.1.5/04_all_haskey_error.patch
@@ -0,0 +1,18 @@
+skey_haskey returns 0 if the user exists, 1 if the user doesn't exist,
+and -1 on file error. Distinguish between these conditions.
+
+--- pam_skey-1.1.5/pam_skey.c
++++ pam_skey/pam_skey.c
+@@ -96,7 +96,11 @@
+ }
+
+ /* Check whether or not this user has an S/Key */
+- if (skey_haskey(username) != 0) {
++ status = skey_haskey(username);
++ if (status == -1) {
++ syslog(LOG_ERR, "error accessing S/Key database for user [%s]", username);
++ return PAM_AUTHINFO_UNAVAIL;
++ } else if (status != 0) {
+ LOGDEBUG((LOG_DEBUG, "user [%s] has no S/Key entry", username));
+ return PAM_IGNORE;
+ }
WARNING: multiple messages have this Message-ID (diff)
From: "Ulrich Müller" <ulm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] dev/ulm:pam_skey-1.1.5-patches-5 commit in: patchsets/pam_skey/1.1.5/
Date: Fri, 4 Sep 2015 08:33:26 +0000 (UTC) [thread overview]
Message-ID: <1377512220.32be7fcd5b3c5f784c4152c9651a4353ffa6e114.ulm@gentoo> (raw)
Message-ID: <20150904083326.qmQ011OllGaWk7sh3eCAB-ofiIyNlVUZ0kulTkkFVLo@z> (raw)
commit: 32be7fcd5b3c5f784c4152c9651a4353ffa6e114
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Mon Aug 26 10:17:00 2013 +0000
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Mon Aug 26 10:17:00 2013 +0000
URL: https://gitweb.gentoo.org/dev/ulm.git/commit/?id=32be7fcd
Improve handling of skey_haskey return status.
patchsets/pam_skey/1.1.5/04_all_haskey_error.patch | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/patchsets/pam_skey/1.1.5/04_all_haskey_error.patch b/patchsets/pam_skey/1.1.5/04_all_haskey_error.patch
new file mode 100644
index 0000000..365b5c7
--- /dev/null
+++ b/patchsets/pam_skey/1.1.5/04_all_haskey_error.patch
@@ -0,0 +1,18 @@
+skey_haskey returns 0 if the user exists, 1 if the user doesn't exist,
+and -1 on file error. Distinguish between these conditions.
+
+--- pam_skey-1.1.5/pam_skey.c
++++ pam_skey/pam_skey.c
+@@ -96,7 +96,11 @@
+ }
+
+ /* Check whether or not this user has an S/Key */
+- if (skey_haskey(username) != 0) {
++ status = skey_haskey(username);
++ if (status == -1) {
++ syslog(LOG_ERR, "error accessing S/Key database for user [%s]", username);
++ return PAM_AUTHINFO_UNAVAIL;
++ } else if (status != 0) {
+ LOGDEBUG((LOG_DEBUG, "user [%s] has no S/Key entry", username));
+ return PAM_IGNORE;
+ }
WARNING: multiple messages have this Message-ID (diff)
From: "Ulrich Müller" <ulm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] dev/ulm:pam_skey-1.1.5-patches-6 commit in: patchsets/pam_skey/1.1.5/
Date: Fri, 4 Sep 2015 08:33:27 +0000 (UTC) [thread overview]
Message-ID: <1377512220.32be7fcd5b3c5f784c4152c9651a4353ffa6e114.ulm@gentoo> (raw)
Message-ID: <20150904083327.5azKBWy3AA8xGwoobd-BI94jNX_6x9lE3SL7yygJImg@z> (raw)
commit: 32be7fcd5b3c5f784c4152c9651a4353ffa6e114
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Mon Aug 26 10:17:00 2013 +0000
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Mon Aug 26 10:17:00 2013 +0000
URL: https://gitweb.gentoo.org/dev/ulm.git/commit/?id=32be7fcd
Improve handling of skey_haskey return status.
patchsets/pam_skey/1.1.5/04_all_haskey_error.patch | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/patchsets/pam_skey/1.1.5/04_all_haskey_error.patch b/patchsets/pam_skey/1.1.5/04_all_haskey_error.patch
new file mode 100644
index 0000000..365b5c7
--- /dev/null
+++ b/patchsets/pam_skey/1.1.5/04_all_haskey_error.patch
@@ -0,0 +1,18 @@
+skey_haskey returns 0 if the user exists, 1 if the user doesn't exist,
+and -1 on file error. Distinguish between these conditions.
+
+--- pam_skey-1.1.5/pam_skey.c
++++ pam_skey/pam_skey.c
+@@ -96,7 +96,11 @@
+ }
+
+ /* Check whether or not this user has an S/Key */
+- if (skey_haskey(username) != 0) {
++ status = skey_haskey(username);
++ if (status == -1) {
++ syslog(LOG_ERR, "error accessing S/Key database for user [%s]", username);
++ return PAM_AUTHINFO_UNAVAIL;
++ } else if (status != 0) {
+ LOGDEBUG((LOG_DEBUG, "user [%s] has no S/Key entry", username));
+ return PAM_IGNORE;
+ }
WARNING: multiple messages have this Message-ID (diff)
From: "Ulrich Müller" <ulm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] dev/ulm:skey-1.1.5-patches-3 commit in: patchsets/pam_skey/1.1.5/
Date: Fri, 4 Sep 2015 08:33:29 +0000 (UTC) [thread overview]
Message-ID: <1377512220.32be7fcd5b3c5f784c4152c9651a4353ffa6e114.ulm@gentoo> (raw)
Message-ID: <20150904083329.uZauPlO-W9ZBqiM2fNfc0nRw1AcvIoapgBLtK_aoeoM@z> (raw)
commit: 32be7fcd5b3c5f784c4152c9651a4353ffa6e114
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Mon Aug 26 10:17:00 2013 +0000
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Mon Aug 26 10:17:00 2013 +0000
URL: https://gitweb.gentoo.org/dev/ulm.git/commit/?id=32be7fcd
Improve handling of skey_haskey return status.
patchsets/pam_skey/1.1.5/04_all_haskey_error.patch | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/patchsets/pam_skey/1.1.5/04_all_haskey_error.patch b/patchsets/pam_skey/1.1.5/04_all_haskey_error.patch
new file mode 100644
index 0000000..365b5c7
--- /dev/null
+++ b/patchsets/pam_skey/1.1.5/04_all_haskey_error.patch
@@ -0,0 +1,18 @@
+skey_haskey returns 0 if the user exists, 1 if the user doesn't exist,
+and -1 on file error. Distinguish between these conditions.
+
+--- pam_skey-1.1.5/pam_skey.c
++++ pam_skey/pam_skey.c
+@@ -96,7 +96,11 @@
+ }
+
+ /* Check whether or not this user has an S/Key */
+- if (skey_haskey(username) != 0) {
++ status = skey_haskey(username);
++ if (status == -1) {
++ syslog(LOG_ERR, "error accessing S/Key database for user [%s]", username);
++ return PAM_AUTHINFO_UNAVAIL;
++ } else if (status != 0) {
+ LOGDEBUG((LOG_DEBUG, "user [%s] has no S/Key entry", username));
+ return PAM_IGNORE;
+ }
next reply other threads:[~2015-09-04 8:30 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-04 8:29 Ulrich Müller [this message]
2015-09-04 8:33 ` [gentoo-commits] dev/ulm:pam_skey-1.1.5-patches-5 commit in: patchsets/pam_skey/1.1.5/ Ulrich Müller
2015-09-04 8:33 ` [gentoo-commits] dev/ulm:pam_skey-1.1.5-patches-6 " Ulrich Müller
2015-09-04 8:33 ` [gentoo-commits] dev/ulm:skey-1.1.5-patches-3 " Ulrich Müller
-- strict thread matches above, loose matches on Subject: below --
2015-09-04 8:33 Ulrich Müller
2015-09-04 8:29 ` [gentoo-commits] dev/ulm:master " Ulrich Müller
2015-09-04 8:33 [gentoo-commits] dev/ulm:skey-1.1.5-patches-2 " Ulrich Müller
2015-09-04 8:29 ` [gentoo-commits] dev/ulm:master " Ulrich Müller
2015-09-04 8:33 [gentoo-commits] dev/ulm:pam_skey-1.1.5-patches-6 " Ulrich Müller
2015-09-04 8:29 ` [gentoo-commits] dev/ulm:master " Ulrich Müller
2015-09-04 8:33 [gentoo-commits] dev/ulm:pam_skey-1.1.5-patches-6 " Ulrich Müller
2015-09-04 8:29 ` [gentoo-commits] dev/ulm:master " Ulrich Müller
2015-09-04 8:33 [gentoo-commits] dev/ulm:pam_skey-1.1.5-patches-4 " Ulrich Müller
2015-09-04 8:29 ` [gentoo-commits] dev/ulm:master " Ulrich Müller
2015-09-04 8:33 [gentoo-commits] dev/ulm:openmotif-2.2.3-patches-5 " Ulrich Müller
2015-09-04 8:29 ` [gentoo-commits] dev/ulm:master " Ulrich Müller
2015-09-04 8:29 Ulrich Müller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1377512220.32be7fcd5b3c5f784c4152c9651a4353ffa6e114.ulm@gentoo \
--to=ulm@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox