changeset 4923:6c1fbd2a0ef9

6587501 NFS client failed on TX down-label access to unlabeled node
author casper
date Tue, 21 Aug 2007 14:13:51 -0700
parents fd833b1ab051
children a4d43c3be842
files usr/src/uts/common/os/cred.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/usr/src/uts/common/os/cred.c	Tue Aug 21 12:28:27 2007 -0700
+++ b/usr/src/uts/common/os/cred.c	Tue Aug 21 14:13:51 2007 -0700
@@ -178,7 +178,7 @@
 	 */
 	ephemeral_data.nobody = crdup(kcred);
 	(void) crsetugid(ephemeral_data.nobody, UID_NOBODY, GID_NOBODY);
-	CR_FLAGS(kcred) = 0;
+	CR_FLAGS(ephemeral_data.nobody) = 0;
 
 	ucredsize = UCRED_SIZE;
 }
@@ -1089,6 +1089,6 @@
 crgetsidlist(const cred_t *cr)
 {
 	if (cr->cr_ksid != NULL && cr->cr_ksid->kr_sidlist != NULL)
-		return ((ksidlist_t *)&cr->cr_ksid->kr_sidlist);
+		return (cr->cr_ksid->kr_sidlist);
 	return (NULL);
 }