Lines Matching defs:idmap
1444 static const char *IDMAP_BIN = "/system/bin/idmap";
1455 // eg /a/b/c.apk to /data/resource-cache/a@b@c.apk@idmap
1489 int idmap(const char *target_apk, const char *overlay_apk, uid_t uid)
1491 ALOGV("idmap target_apk=%s overlay_apk=%s uid=%d\n", target_apk, overlay_apk, uid);
1498 ALOGE("idmap cannot generate idmap path for overlay %s\n", overlay_apk);
1505 ALOGE("idmap cannot open '%s' for output: %s\n", idmap_path, strerror(errno));
1509 ALOGE("idmap cannot chown '%s'\n", idmap_path);
1513 ALOGE("idmap cannot chmod '%s'\n", idmap_path);
1522 ALOGE("setgid(%d) failed during idmap\n", uid);
1526 ALOGE("setuid(%d) failed during idmap\n", uid);
1530 ALOGE("flock(%s) failed during idmap: %s\n", idmap_path, strerror(errno));
1535 exit(1); /* only if exec call to idmap failed */
1539 ALOGE("idmap failed, status=0x%04x\n", status);