Home
last modified time | relevance | path

Searched refs:gidmap (Results 1 – 4 of 4) sorted by relevance

/external/minijail/
Dminijail0_cli.c287 char *gidmap) in set_ugid_mapping() argument
311 if (!gidmap) { in set_ugid_mapping()
316 gidmap = build_idmap(gid, getgid()); in set_ugid_mapping()
328 if (0 != minijail_gidmap(j, gidmap)) { in set_ugid_mapping()
332 free(gidmap); in set_ugid_mapping()
584 char *uidmap = NULL, *gidmap = NULL; in parse_args() local
772 if (gidmap) { in parse_args()
773 free(gidmap); in parse_args()
774 gidmap = NULL; in parse_args()
777 gidmap = strdup(optarg); in parse_args()
[all …]
Dlibminijail_unittest.cc629 char uidmap[kBufferSize], gidmap[kBufferSize]; in TEST_F() local
648 snprintf(gidmap, sizeof(gidmap), "%d %d 1", kTargetGid, getgid()); in TEST_F()
652 minijail_gidmap(j, gidmap); in TEST_F()
677 std::string gidmap = "0 " + std::to_string(getgid()) + " 1"; in TEST_F() local
710 minijail_gidmap(j.get(), gidmap.c_str()); in TEST_F()
754 char uidmap[kBufferSize], gidmap[kBufferSize]; in TEST_F() local
773 snprintf(gidmap, sizeof(gidmap), "0 %d 1", getgid()); in TEST_F()
775 minijail_gidmap(j, gidmap); in TEST_F()
Dlibminijail.c181 char *gidmap; member
578 int API minijail_gidmap(struct minijail *j, const char *gidmap) in minijail_gidmap() argument
580 j->gidmap = strdup(gidmap); in minijail_gidmap()
581 if (!j->gidmap) in minijail_gidmap()
584 for (ch = j->gidmap; *ch; ch++) { in minijail_gidmap()
1157 j->gidmap = NULL; in minijail_unmarshal()
1735 if (j->gidmap && j->flags.disable_setgroups) { in write_ugid_maps_or_die()
1746 if (j->gidmap && write_proc_file(j->initpid, j->gidmap, "gid_map") != 0) in write_ugid_maps_or_die()
1754 if (j->gidmap && setresgid(gid, gid, gid)) { in enter_user_namespace()
3097 if (j->gidmap) in minijail_destroy()
[all …]
Dlibminijail.h135 int minijail_gidmap(struct minijail *j, const char *gidmap);