Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 850717 Details for
Bug 1053877
RHEL7 nfs-utils not working correctly with keyring ccaches
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Patch that fixes the issue
0001-Improve-first-attempt-at-acquiring-GSS-credentials.patch (text/plain), 2.20 KB, created by
Simo Sorce
on 2014-01-15 21:42:49 UTC
(
hide
)
Description:
Patch that fixes the issue
Filename:
MIME Type:
Creator:
Simo Sorce
Created:
2014-01-15 21:42:49 UTC
Size:
2.20 KB
patch
obsolete
>From 421f66b1cd0b031ef843f7680f463027904b93ca Mon Sep 17 00:00:00 2001 >From: Simo Sorce <simo@redhat.com> >Date: Wed, 15 Jan 2014 16:01:49 -0500 >Subject: [PATCH] Improve first attempt at acquiring GSS credentials > >Since now rpc.gssd is swithing uid before attempting to acquire >credentials, we do not need to pass in the special uid-as-a-string name >to gssapi, because the process is already running under the user's >credentials. > >By making this optional we can fix a class of false negatives where the >user name does not match the actual ccache credentials and the ccache >type used is not one of the only 2 supported explicitly by rpc.gssd by the >fallback trolling done later. > >Signed-off-by: Simo Sorce <simo@redhat.com> >--- > utils/gssd/krb5_util.c | 32 ++++++++++++++++++-------------- > 1 file changed, 18 insertions(+), 14 deletions(-) > >diff --git a/utils/gssd/krb5_util.c b/utils/gssd/krb5_util.c >index 697d1d2e79db0cc38160ea4772d3af3a9b7d6c21..7db5baf4e4bea75ed7beebd2103afbc291efb641 100644 >--- a/utils/gssd/krb5_util.c >+++ b/utils/gssd/krb5_util.c >@@ -1383,24 +1383,28 @@ gssd_acquire_user_cred(uid_t uid, gss_cred_id_t *gss_cred) > { > OM_uint32 maj_stat, min_stat; > gss_buffer_desc name_buf; >- gss_name_t name; >+ gss_name_t name = GSS_C_NO_NAME; > char buf[11]; > int ret; > >- ret = snprintf(buf, 11, "%u", uid); >- if (ret < 1 || ret > 10) { >- return -1; >- } >- name_buf.value = buf; >- name_buf.length = ret + 1; >+ /* the follwing is useful only if change_identity() in >+ * process_krb5_upcall() failed to change uids */ >+ if (getuid() == 0) { >+ ret = snprintf(buf, 11, "%u", uid); >+ if (ret < 1 || ret > 10) { >+ return -1; >+ } >+ name_buf.value = buf; >+ name_buf.length = ret + 1; > >- maj_stat = gss_import_name(&min_stat, &name_buf, >- GSS_C_NT_STRING_UID_NAME, &name); >- if (maj_stat != GSS_S_COMPLETE) { >- if (get_verbosity() > 0) >- pgsserr("gss_import_name", >- maj_stat, min_stat, &krb5oid); >- return -1; >+ maj_stat = gss_import_name(&min_stat, &name_buf, >+ GSS_C_NT_STRING_UID_NAME, &name); >+ if (maj_stat != GSS_S_COMPLETE) { >+ if (get_verbosity() > 0) >+ pgsserr("gss_import_name", >+ maj_stat, min_stat, &krb5oid); >+ return -1; >+ } > } > > ret = gssd_acquire_krb5_cred(name, gss_cred); >-- >1.8.4.2 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1053877
: 850717