Lines Matching refs:uid
516 uid_t uid,
532 userid = uid / AID_USER;
533 appid = uid % AID_USER;
664 "%s: No match for app with uid %d, seinfo %s, name %s\n",
665 __FUNCTION__, uid, seinfo, pkgname);
681 uid_t uid)
700 rc = seapp_context_lookup(SEAPP_TYPE, uid, 0, seinfo, pkgname, NULL, ctx);
726 selinux_log(SELINUX_ERROR, "%s: Error setting context for pkgdir %s, uid %d: %s\n",
727 uid, strerror(errno));
736 int selinux_android_setcontext(uid_t uid,
757 rc = seapp_context_lookup(SEAPP_DOMAIN, uid, isSystemServer, seinfo, pkgname, NULL, ctx);
790 "%s: Error setting context for app with uid %d, seinfo %s: %s\n",
791 __FUNCTION__, uid, seinfo, strerror(errno));
892 uid_t uid;
945 pkgInfo->uid = atoi(cur);
946 if (!pkgInfo->uid)
984 selinux_log(SELINUX_INFO, "%s: name=%s uid=%u debuggable=%s dataDir=%s seinfo=%s\n",
986 pkgInfo->name, pkgInfo->uid, pkgInfo->debuggable ? "true" : "false", pkgInfo->dataDir, pkgInfo->seinfo);
1039 uid_t uid,
1090 rc = seapp_context_lookup(SEAPP_TYPE, pkgInfo ? pkgInfo->uid : uid, 0,
1118 selinux_log(SELINUX_ERROR, "%s: Error looking up context for path %s, pkgname %s, seinfo %s, uid %u: %s\n",
1119 __FUNCTION__, pathname, pkgname, pkgInfo->seinfo, pkgInfo->uid, strerror(errno));
1128 const char *seinfo, uid_t uid)
1148 if (pkgdir_selabel_lookup(pathname, seinfo, uid, &secontext) < 0)
1182 uid_t uid,
1213 return restorecon_sb(pathname, &sb, nochange, verbose, seinfo, uid);
1284 error |= restorecon_sb(ftsent->fts_path, ftsent->fts_statp, nochange, verbose, seinfo, uid);
1307 uid_t uid,
1310 return selinux_android_restorecon_common(pkgdir, seinfo, uid, flags | SELINUX_ANDROID_RESTORECON_DATADATA);