Lines Matching refs:uid
73 static void check_directory(const char* path, uid_t uid) { in check_directory() argument
88 if (st.st_uid != uid || st.st_gid != uid) { in check_directory()
89 error(1, 0, "%s has wrong owner: %d/%d, not %d", path, st.st_uid, st.st_gid, uid); in check_directory()
102 static void check_data_path(const char* package_name, const char* data_path, uid_t uid) { in check_data_path() argument
142 check_directory(data_path, uid); in check_data_path()
211 if (info.uid == 0) { in main()
217 if ((UID_MAX - info.uid) / AID_USER_OFFSET < (uid_t)userId) { in main()
222 uid_t userAppId = (AID_USER_OFFSET * userId) + info.uid; in main()
239 uid_t uid = userAppId; in main() local
243 minijail_change_uid(j.get(), uid); in main()
249 if (selinux_android_setcontext(uid, 0, seinfo.c_str(), pkgname) < 0) { in main()
264 passwd* pw = getpwuid(uid); in main()