Lines Matching defs:ctx_new
2347 struct context ctx_new;
2369 ctx_new.user = ctx->user;
2370 ctx_new.role = ctx->role;
2371 ctx_new.type = ctx->type;
2372 ctx_new.range.level[0].sens =
2374 ctx_new.range.level[0].cat.highbit =
2376 ctx_new.range.level[0].cat.node =
2378 ctx_new.range.level[1].sens =
2380 ctx_new.range.level[1].cat.highbit =
2382 ctx_new.range.level[1].cat.node =
2385 rc = sidtab_context_to_sid(&sidtab, &ctx_new, sid);
2395 ctx_new.user = ctx->user;
2396 ctx_new.role = ctx->role;
2397 ctx_new.type = ctx->type;
2398 mls_import_netlbl_lvl(&ctx_new, secattr);
2400 if (ebitmap_netlbl_import(&ctx_new.range.level[0].cat,
2403 ctx_new.range.level[1].cat.highbit =
2404 ctx_new.range.level[0].cat.highbit;
2405 ctx_new.range.level[1].cat.node =
2406 ctx_new.range.level[0].cat.node;
2408 ebitmap_init(&ctx_new.range.level[0].cat);
2409 ebitmap_init(&ctx_new.range.level[1].cat);
2411 if (mls_context_isvalid(&policydb, &ctx_new) != 1)
2414 rc = sidtab_context_to_sid(&sidtab, &ctx_new, sid);
2418 security_netlbl_cache_add(secattr, &ctx_new);
2420 ebitmap_destroy(&ctx_new.range.level[0].cat);
2430 ebitmap_destroy(&ctx_new.range.level[0].cat);