All of lore.kernel.org
 help / color / mirror / Atom feed
From: Doug Nazar <nazard.michi@gmail.com>
To: linux-nfs@vger.kernel.org
Subject: Fix gssd ignore machine credentials for root
Date: Sat, 11 May 2013 07:54:18 -0400	[thread overview]
Message-ID: <518E316A.8050002@gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 232 bytes --]

Commit 1c787f14 [gssd: scan for DIR: ccaches, too] changed the default 
prefix for the credential cache files. Update the check to ignore the 
machine credential file when running with -n (root ignores machine 
credentials).

Doug


[-- Attachment #2: nfs-utils-root-ignore-machine-creds-fix.patch --]
[-- Type: text/plain, Size: 430 bytes --]

--- utils/gssd/krb5_util.c	2013-05-11 00:33:08.054297810 -0400
+++ ../nfs-utils-1.2.7.new/utils/gssd/krb5_util.c	2012-11-11 18:01:23.000000000 -0500
@@ -231,7 +231,7 @@
 				continue;
 			}
 			if (uid == 0 && !root_uses_machine_creds && 
-				strstr(namelist[i]->d_name, "_machine_")) {
+				strstr(namelist[i]->d_name, "machine_")) {
 				printerr(3, "CC '%s' not available to root\n",
 					 statname);
 				free(namelist[i]);

             reply	other threads:[~2013-05-11 11:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-11 11:54 Doug Nazar [this message]
2013-05-12 18:20 ` Fix gssd ignore machine credentials for root Steve Dickson
2013-07-02 12:48 ` Steve Dickson

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=518E316A.8050002@gmail.com \
    --to=nazard.michi@gmail.com \
    --cc=linux-nfs@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.