Lines Matching refs:userid
763 static int set_range_from_level(context_t ctx, enum levelFrom levelFrom, uid_t userid, uid_t appid) in set_range_from_level() argument
777 512 + (userid & 0xff), in set_range_from_level()
778 768 + (userid>>8 & 0xff)); in set_range_from_level()
784 512 + (userid & 0xff), in set_range_from_level()
785 768 + (userid>>8 & 0xff)); in set_range_from_level()
809 uid_t userid; in seapp_context_lookup() local
835 userid = uid / AID_USER; in seapp_context_lookup()
836 isOwner = (userid == 0); in seapp_context_lookup()
860 if (appid >= CAT_MAPPING_MAX_ID || userid >= CAT_MAPPING_MAX_ID) in seapp_context_lookup()
939 int res = set_range_from_level(ctx, cur->levelFrom, userid, appid); in seapp_context_lookup()
973 uid_t userid, in selinux_android_context_with_level() argument
979 if (userid == (uid_t) -1) { in selinux_android_context_with_level()
990 int res = set_range_from_level(ctx, levelFrom, userid, appid); in selinux_android_context_with_level()