• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src/router/samba-3.5.8/source3/smbd/

Lines Matching defs:ctx_p

191 	struct sec_ctx *ctx_p;
204 ctx_p = &sec_ctx_stack[sec_ctx_stack_ndx];
206 ctx_p->ut.uid = geteuid();
207 ctx_p->ut.gid = getegid();
210 (unsigned int)ctx_p->ut.uid, (unsigned int)ctx_p->ut.gid, sec_ctx_stack_ndx ));
212 ctx_p->token = dup_nt_token(NULL,
215 ctx_p->ut.ngroups = sys_getgroups(0, NULL);
217 if (ctx_p->ut.ngroups != 0) {
218 if (!(ctx_p->ut.groups = SMB_MALLOC_ARRAY(gid_t, ctx_p->ut.ngroups))) {
220 TALLOC_FREE(ctx_p->token);
224 sys_getgroups(ctx_p->ut.ngroups, ctx_p->ut.groups);
226 ctx_p->ut.groups = NULL;
305 struct sec_ctx *ctx_p = &sec_ctx_stack[sec_ctx_stack_ndx];
318 ctx_p->ut.ngroups = ngroups;
320 SAFE_FREE(ctx_p->ut.groups);
321 if (token && (token == ctx_p->token)) {
325 TALLOC_FREE(ctx_p->token);
328 ctx_p->ut.groups = (gid_t *)memdup(groups,
330 if (!ctx_p->ut.groups) {
334 ctx_p->ut.groups = NULL;
338 ctx_p->token = dup_nt_token(NULL, token);
339 if (!ctx_p->token) {
343 ctx_p->token = NULL;
346 ctx_p->ut.uid = uid;
347 ctx_p->ut.gid = gid;
355 current_user.nt_user_token = ctx_p->token;
375 struct sec_ctx *ctx_p;
385 ctx_p = &sec_ctx_stack[sec_ctx_stack_ndx];
389 ctx_p->ut.uid = (uid_t)-1;
390 ctx_p->ut.gid = (gid_t)-1;
392 SAFE_FREE(ctx_p->ut.groups);
393 ctx_p->ut.ngroups = 0;
395 TALLOC_FREE(ctx_p->token);
428 struct sec_ctx *ctx_p;
440 ctx_p = &sec_ctx_stack[0];
442 ctx_p->ut.uid = geteuid();
443 ctx_p->ut.gid = getegid();
445 get_current_groups(ctx_p->ut.gid, &ctx_p->ut.ngroups, &ctx_p->ut.groups);
447 ctx_p->token = NULL; /* Maps to guest user. */
451 current_user.ut.uid = ctx_p->ut.uid;
452 current_user.ut.gid = ctx_p->ut.gid;
453 current_user.ut.ngroups = ctx_p->ut.ngroups;
454 current_user.ut.groups = ctx_p->ut.groups;