Lines Matching refs:appid
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
772 appid & 0xff, in set_range_from_level()
773 256 + (appid>>8 & 0xff)); in set_range_from_level()
782 appid & 0xff, in set_range_from_level()
783 256 + (appid>>8 & 0xff), in set_range_from_level()
810 uid_t appid; in seapp_context_lookup() local
837 appid = uid % AID_USER; in seapp_context_lookup()
838 if (appid < AID_APP) { in seapp_context_lookup()
846 pwd = getpwuid(appid); in seapp_context_lookup()
852 } else if (appid < AID_ISOLATED_START) { in seapp_context_lookup()
854 appid -= AID_APP; in seapp_context_lookup()
857 appid -= AID_ISOLATED_START; 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()
974 uid_t appid) in selinux_android_context_with_level() argument
980 levelFrom = (appid == (uid_t) -1) ? LEVELFROM_NONE : LEVELFROM_APP; in selinux_android_context_with_level()
982 levelFrom = (appid == (uid_t) -1) ? LEVELFROM_USER : LEVELFROM_ALL; in selinux_android_context_with_level()
990 int res = set_range_from_level(ctx, levelFrom, userid, appid); in selinux_android_context_with_level()