Searched refs:gidmap (Results 1 – 8 of 8) sorted by relevance
/external/minijail/ |
D | minijail0_cli.c | 318 char *gidmap) in set_ugid_mapping() argument 340 if (!gidmap) { in set_ugid_mapping() 345 gidmap = build_idmap(gid, getgid()); in set_ugid_mapping() 357 if (0 != minijail_gidmap(j, gidmap)) in set_ugid_mapping() 359 free(gidmap); in set_ugid_mapping() 776 char *uidmap = NULL, *gidmap = NULL; in parse_args() local 963 if (gidmap) { in parse_args() 964 free(gidmap); in parse_args() 965 gidmap = NULL; in parse_args() 968 gidmap = xstrdup(optarg); in parse_args() [all …]
|
D | libminijail_unittest.cc | 1129 char uidmap[kBufferSize], gidmap[kBufferSize]; in TEST_F() local 1146 snprintf(gidmap, sizeof(gidmap), "%d %d 1", kTargetGid, getgid()); in TEST_F() 1150 minijail_gidmap(j, gidmap); in TEST_F() 1175 std::string gidmap = "0 " + std::to_string(getgid()) + " 1"; in TEST_F() local 1208 minijail_gidmap(j.get(), gidmap.c_str()); in TEST_F() 1252 char uidmap[kBufferSize], gidmap[kBufferSize]; in TEST_F() local 1269 snprintf(gidmap, sizeof(gidmap), "0 %d 1", getgid()); in TEST_F() 1271 minijail_gidmap(j, gidmap); in TEST_F() 1325 char uidmap[kBufferSize], gidmap[kBufferSize]; in TEST_F() local 1341 snprintf(gidmap, sizeof(gidmap), "%d %d 1", kTargetGid, getgid()); in TEST_F() [all …]
|
D | libminijail.c | 186 char *gidmap; member 754 int API minijail_gidmap(struct minijail *j, const char *gidmap) in minijail_gidmap() argument 756 j->gidmap = strdup(gidmap); in minijail_gidmap() 757 if (!j->gidmap) in minijail_gidmap() 760 for (ch = j->gidmap; *ch; ch++) { in minijail_gidmap() 1518 j->gidmap = NULL; in minijail_unmarshal() 2200 if (j->gidmap && j->flags.disable_setgroups) { in write_ugid_maps_or_die() 2217 if (j->gidmap && write_proc_file(j->initpid, j->gidmap, "gid_map") != 0) in write_ugid_maps_or_die() 2225 if (j->gidmap && setresgid(gid, gid, gid)) { in enter_user_namespace() 3955 if (j->gidmap) in minijail_destroy() [all …]
|
D | libminijail.h | 172 int minijail_gidmap(struct minijail *j, const char *gidmap);
|
/external/crosvm/jail/src/ |
D | helpers.rs | 171 jail.gidmap(&format!("0 {} 1", crosvm_gid)) in create_sandbox_minijail() 189 jail.gidmap(gid_map).context("error setting GID map")?; in create_sandbox_minijail() 429 jail.gidmap(&format!("{0} {0} 1", crosvm_gid)) in add_current_user_to_jail()
|
/external/crosvm/devices/src/virtio/vhost/user/device/fs/sys/ |
D | unix.rs | 45 j.gidmap(&gid_map.unwrap_or_else(default_gidmap))?; in jail_and_fork()
|
/external/minijail/rust/minijail-sys/ |
D | libminijail.rs | 201 gidmap: *const ::std::os::raw::c_char, in minijail_gidmap()
|
/external/minijail/rust/minijail/src/ |
D | lib.rs | 651 pub fn gidmap(&mut self, gid_map: &str) -> Result<()> { in gidmap() method
|