Skip to contentSkip to conversation

Fix gssd ignore machine credentials for root

PATCH Doug Nazar 2 participants 3 messages May 11, 2013 – Jul 2, 2013

Subsystems (2)
lore
Share & tools
lore

Doug Nazar

author
#0 lore raw

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

nfs-utils-1.2.7.new/utils/gssd/krb5_util.c renamed from gssd/krb5_util.c +1 -1
@@ -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]);
#1 lore raw

Hi

Quoted 1 line · Doug Nazar

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.

#2 lore raw
In reply to Doug Nazar
Quoted 1 line · Doug Nazar

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.