diff mbox

Fix gssd ignore machine credentials for root

Message ID 518E316A.8050002@gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Doug Nazar May 11, 2013, 11:54 a.m. UTC
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

Comments

Steve Dickson May 12, 2013, 6:20 p.m. UTC | #1
Hi

On 11/05/13 07:54, Doug Nazar wrote:
> 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).
Thank you very much for point this bug out but could you please
resubmit the patch using the proper Signed-off-by format define section 
12 of https://www.kernel.org/doc/Documentation/SubmittingPatches

Sections 1, 7, 11, 15 are also some what important.... Thanks! 

steved.
--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Steve Dickson July 2, 2013, 12:48 p.m. UTC | #2
On 11/05/13 07:54, Doug Nazar wrote:
> 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).
Committed...

In the future please send patches in line and with the work "[PATCH]" in the subject. 

steved.
--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

--- 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]);