@@ -565,7 +565,7 @@ gss_setup_upcall(struct gss_auth *gss_auth, struct rpc_cred *cred)
565565 struct gss_cred * gss_cred = container_of (cred ,
566566 struct gss_cred , gc_base );
567567 struct gss_upcall_msg * gss_new , * gss_msg ;
568- kuid_t uid = cred -> cr_uid ;
568+ kuid_t uid = cred -> cr_cred -> fsuid ;
569569
570570 gss_new = gss_alloc_msg (gss_auth , uid , gss_cred -> gc_principal );
571571 if (IS_ERR (gss_new ))
@@ -604,7 +604,7 @@ gss_refresh_upcall(struct rpc_task *task)
604604 int err = 0 ;
605605
606606 dprintk ("RPC: %5u %s for uid %u\n" ,
607- task -> tk_pid , __func__ , from_kuid (& init_user_ns , cred -> cr_uid ));
607+ task -> tk_pid , __func__ , from_kuid (& init_user_ns , cred -> cr_cred -> fsuid ));
608608 gss_msg = gss_setup_upcall (gss_auth , cred );
609609 if (PTR_ERR (gss_msg ) == - EAGAIN ) {
610610 /* XXX: warning on the first, under the assumption we
@@ -637,7 +637,7 @@ gss_refresh_upcall(struct rpc_task *task)
637637out :
638638 dprintk ("RPC: %5u %s for uid %u result %d\n" ,
639639 task -> tk_pid , __func__ ,
640- from_kuid (& init_user_ns , cred -> cr_uid ), err );
640+ from_kuid (& init_user_ns , cred -> cr_cred -> fsuid ), err );
641641 return err ;
642642}
643643
@@ -653,7 +653,7 @@ gss_create_upcall(struct gss_auth *gss_auth, struct gss_cred *gss_cred)
653653 int err ;
654654
655655 dprintk ("RPC: %s for uid %u\n" ,
656- __func__ , from_kuid (& init_user_ns , cred -> cr_uid ));
656+ __func__ , from_kuid (& init_user_ns , cred -> cr_cred -> fsuid ));
657657retry :
658658 err = 0 ;
659659 /* if gssd is down, just skip upcalling altogether */
@@ -701,7 +701,7 @@ gss_create_upcall(struct gss_auth *gss_auth, struct gss_cred *gss_cred)
701701 gss_release_msg (gss_msg );
702702out :
703703 dprintk ("RPC: %s for uid %u result %d\n" ,
704- __func__ , from_kuid (& init_user_ns , cred -> cr_uid ), err );
704+ __func__ , from_kuid (& init_user_ns , cred -> cr_cred -> fsuid ), err );
705705 return err ;
706706}
707707
@@ -1520,7 +1520,7 @@ gss_match(struct auth_cred *acred, struct rpc_cred *rc, int flags)
15201520 } else {
15211521 if (gss_cred -> gc_principal != NULL )
15221522 return 0 ;
1523- ret = uid_eq (rc -> cr_uid , acred -> cred -> fsuid );
1523+ ret = uid_eq (rc -> cr_cred -> fsuid , acred -> cred -> fsuid );
15241524 }
15251525 return ret ;
15261526}
0 commit comments