Home | History | Annotate | Download | only in installd

Lines Matching refs:uid

31 int install(const char *pkgname, uid_t uid, gid_t gid, const char *seinfo)
38 if ((uid < AID_SYSTEM) || (gid < AID_SYSTEM)) {
39 ALOGE("invalid uid/gid: %d %d\n", uid, gid);
94 if (selinux_android_setfilecon2(pkgdir, pkgname, seinfo, uid) < 0) {
101 if (chown(pkgdir, uid, gid) < 0) {
139 int fix_uid(const char *pkgname, uid_t uid, gid_t gid)
145 if ((uid < AID_SYSTEM) || (gid < AID_SYSTEM)) {
146 ALOGE("invalid uid/gid: %d %d\n", uid, gid);
158 ALOGE("fixing uid of non-root pkg: %s %lu %lu\n", pkgdir, s.st_uid, s.st_gid);
167 if (chown(pkgdir, uid, gid) < 0) {
187 int make_user_data(const char *pkgname, uid_t uid, uid_t persona)
248 if (selinux_android_setfilecon(pkgdir, pkgname, uid) < 0) {
255 if (chown(pkgdir, uid, uid) < 0) {
630 int dexopt(const char *apk_path, uid_t uid, int is_public)
683 if (fchown(odex_fd, AID_SYSTEM, uid) < 0) {
694 if (setgid(uid) != 0) {
695 ALOGE("setgid(%d) failed during dexopt\n", uid);
698 if (setuid(uid) != 0) {
699 ALOGE("setuid(%d) during dexopt\n", uid);
746 void mkinnerdirs(char* path, int basepos, mode_t mode, int uid, int gid,
755 chown(path, uid, gid);
785 ALOGV("Renaming %s to %s (uid %d)\n", srcpath, dstpath, dstuid);
968 ALOGV("Transfering from %s to %s: uid=%d\n",