Home
last modified time | relevance | path

Searched refs:uidmap (Results 1 – 9 of 9) sorted by relevance

/external/minijail/
Dminijail0_cli.c328 char *uidmap, int set_gidmap, gid_t gid, in set_ugid_mapping() argument
335 if (!uidmap) { in set_ugid_mapping()
341 uidmap = build_idmap(uid, getuid()); in set_ugid_mapping()
343 if (0 != minijail_uidmap(j, uidmap)) { in set_ugid_mapping()
347 free(uidmap); in set_ugid_mapping()
635 char *uidmap = NULL, *gidmap = NULL; in parse_args() local
816 if (uidmap) { in parse_args()
817 free(uidmap); in parse_args()
818 uidmap = NULL; in parse_args()
821 uidmap = strdup(optarg); in parse_args()
[all …]
Dlibminijail_unittest.cc768 char uidmap[kBufferSize], gidmap[kBufferSize]; in TEST_F() local
786 snprintf(uidmap, sizeof(uidmap), "%d %d 1", kTargetUid, getuid()); in TEST_F()
790 minijail_uidmap(j, uidmap); in TEST_F()
817 std::string uidmap = "0 " + std::to_string(getuid()) + " 1"; in TEST_F() local
850 minijail_uidmap(j.get(), uidmap.c_str()); in TEST_F()
895 char uidmap[kBufferSize], gidmap[kBufferSize]; in TEST_F() local
913 snprintf(uidmap, sizeof(uidmap), "0 %d 1", getuid()); in TEST_F()
915 minijail_uidmap(j, uidmap); in TEST_F()
Dlibminijail.c181 char *uidmap; member
621 int API minijail_uidmap(struct minijail *j, const char *uidmap) in minijail_uidmap() argument
623 j->uidmap = strdup(uidmap); in minijail_uidmap()
624 if (!j->uidmap) in minijail_uidmap()
627 for (ch = j->uidmap; *ch; ch++) { in minijail_uidmap()
1250 j->uidmap = NULL; in minijail_unmarshal()
1829 if (j->uidmap && write_proc_file(j->initpid, j->uidmap, "uid_map") != 0) in write_ugid_maps_or_die()
1857 if (j->uidmap && setresuid(uid, uid, uid)) { in enter_user_namespace()
3239 if (j->uidmap) in minijail_destroy()
3240 free(j->uidmap); in minijail_destroy()
Dlibminijail.h155 int minijail_uidmap(struct minijail *j, const char *uidmap);
Dlibminijail.rs183 uidmap: *const ::std::os::raw::c_char, in minijail_uidmap()
/external/crosvm/io_jail/src/
Dlibminijail.rs45 pub fn minijail_uidmap(j: *mut minijail, uidmap: *const c_char) -> c_int; in minijail_uidmap()
Dlib.rs352 pub fn uidmap(&mut self, uid_map: &str) -> Result<()> { in uidmap() method
/external/crosvm/src/
Dlinux.rs687 jail.uidmap(&format!("{0} {0} 1", chronos.uid)) in create_9p_device()
997 jail.uidmap(&format!("{0} {0} 1", crosvm_uid)) in add_crosvm_user_to_jail()
/external/crosvm/src/plugin/
Dmod.rs274 j.uidmap(&format!("0 {0} 1", geteuid())) in create_plugin_jail()