• Home
  • Raw
  • Download

Lines Matching refs:gid

92 static void drop_privs(uid_t uid, gid_t gid) {  in drop_privs()  argument
95 minijail_change_gid(j.get(), gid); in drop_privs()
102 uid_t fsuid, gid_t fsgid, bool multi_user, userid_t userid, gid_t gid, in sdcardfs_setup() argument
120 fsuid, fsgid, new_opts.c_str(), mask, userid, gid); in sdcardfs_setup()
133 gid_t gid, mode_t mask) { in sdcardfs_setup_bind_remount() argument
134 std::string opts = android::base::StringPrintf("mask=%d,gid=%d", mask, gid); in sdcardfs_setup_bind_remount()
156 gid_t gid, mode_t mask, bool derive_gid, bool default_normal, in sdcardfs_setup_secondary() argument
159 return sdcardfs_setup(source_path, dest_path, fsuid, fsgid, multi_user, userid, gid, mask, in sdcardfs_setup_secondary()
162 return sdcardfs_setup_bind_remount(default_path, dest_path, gid, mask); in sdcardfs_setup_secondary()
167 gid_t gid, userid_t userid, bool multi_user, bool full_write, in run_sdcardfs() argument
178 if (!sdcardfs_setup(source_path, dest_path_default, uid, gid, multi_user, userid, in run_sdcardfs()
181 !sdcardfs_setup_secondary(dest_path_default, source_path, dest_path_read, uid, gid, in run_sdcardfs()
184 !sdcardfs_setup_secondary(dest_path_default, source_path, dest_path_write, uid, gid, in run_sdcardfs()
187 !sdcardfs_setup_secondary(dest_path_default, source_path, dest_path_full, uid, gid, in run_sdcardfs()
196 if (!sdcardfs_setup(source_path, dest_path_default, uid, gid, multi_user, userid, in run_sdcardfs()
199 !sdcardfs_setup_secondary(dest_path_default, source_path, dest_path_read, uid, gid, in run_sdcardfs()
202 !sdcardfs_setup_secondary(dest_path_default, source_path, dest_path_write, uid, gid, in run_sdcardfs()
205 !sdcardfs_setup_secondary(dest_path_default, source_path, dest_path_full, uid, gid, in run_sdcardfs()
213 drop_privs(uid, gid); in run_sdcardfs()
217 fs_prepare_dir(obb_path.c_str(), 0775, uid, gid); in run_sdcardfs()
239 gid_t gid = 0; in main() local
260 gid = strtoul(optarg, NULL, 10); in main()
307 if (!uid || !gid) { in main()
323 run_sdcardfs(source_path, label, uid, gid, userid, multi_user, full_write, derive_gid, in main()