Lines 121-129
Link Here
|
121 |
}; |
121 |
}; |
122 |
|
122 |
|
123 |
#define SVC_RPC_GSS_SEQWINDOW 128 |
123 |
#define SVC_RPC_GSS_SEQWINDOW 128 |
124 |
#ifndef RPCAUTH_UNIXGIDS |
|
|
125 |
#define RPCAUTH_UNIXGIDS 16 |
126 |
#endif |
127 |
|
124 |
|
128 |
struct svc_rpc_gss_clientid { |
125 |
struct svc_rpc_gss_clientid { |
129 |
unsigned long ci_hostid; |
126 |
unsigned long ci_hostid; |
Lines 150-156
Link Here
|
150 |
int cl_rpcflavor; /* RPC pseudo sec flavor */ |
147 |
int cl_rpcflavor; /* RPC pseudo sec flavor */ |
151 |
bool_t cl_done_callback; /* TRUE after call */ |
148 |
bool_t cl_done_callback; /* TRUE after call */ |
152 |
void *cl_cookie; /* user cookie from callback */ |
149 |
void *cl_cookie; /* user cookie from callback */ |
153 |
gid_t cl_gid_storage[RPCAUTH_UNIXGIDS]; |
150 |
gid_t cl_gid_storage[NGROUPS]; |
154 |
gss_OID cl_mech; /* mechanism */ |
151 |
gss_OID cl_mech; /* mechanism */ |
155 |
gss_qop_t cl_qop; /* quality of protection */ |
152 |
gss_qop_t cl_qop; /* quality of protection */ |
156 |
uint32_t cl_seqlast; /* sequence window origin */ |
153 |
uint32_t cl_seqlast; /* sequence window origin */ |
Lines 776-782
Link Here
|
776 |
uc->gid = 65534; |
773 |
uc->gid = 65534; |
777 |
uc->gidlist = client->cl_gid_storage; |
774 |
uc->gidlist = client->cl_gid_storage; |
778 |
|
775 |
|
779 |
numgroups = RPCAUTH_UNIXGIDS; |
776 |
numgroups = NGROUPS; |
780 |
maj_stat = gss_pname_to_unix_cred(&min_stat, name, client->cl_mech, |
777 |
maj_stat = gss_pname_to_unix_cred(&min_stat, name, client->cl_mech, |
781 |
&uc->uid, &uc->gid, &numgroups, &uc->gidlist[0]); |
778 |
&uc->uid, &uc->gid, &numgroups, &uc->gidlist[0]); |
782 |
if (GSS_ERROR(maj_stat)) |
779 |
if (GSS_ERROR(maj_stat)) |