[gdm] pam_gdm: return AUTHINFO_UNAVAIL if kernel keyring unavailable
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdm] pam_gdm: return AUTHINFO_UNAVAIL if kernel keyring unavailable
- Date: Tue, 30 Aug 2016 20:41:02 +0000 (UTC)
commit bb12416da1f6e58bda1762eca956b5c61f36d180
Author: Ray Strode <rstrode redhat com>
Date: Tue Aug 30 16:10:19 2016 -0400
pam_gdm: return AUTHINFO_UNAVAIL if kernel keyring unavailable
right now we return PAM_SUCCESS if keyutils are unavailable.
This is the wrong default, we should fail if we aren't able to
get the password.
https://bugzilla.gnome.org/show_bug.cgi?id=770612
pam_gdm/pam_gdm.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/pam_gdm/pam_gdm.c b/pam_gdm/pam_gdm.c
index 7beb04e..f491b8d 100644
--- a/pam_gdm/pam_gdm.c
+++ b/pam_gdm/pam_gdm.c
@@ -58,7 +58,7 @@ pam_sm_authenticate (pam_handle_t *pamh,
return PAM_AUTH_ERR;
#endif
- return PAM_SUCCESS;
+ return PAM_AUTHINFO_UNAVAIL;
}
int
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]