Lines Matching refs:seinfo
147 char *seinfo; member
166 free(s->seinfo); in free_seapp_context()
219 if (s1->seinfo && !s2->seinfo) in seapp_context_cmp()
221 if (!s1->seinfo && s2->seinfo) in seapp_context_cmp()
275 (!s1->seinfo || !strcmp(s1->seinfo, s2->seinfo)) && in seapp_context_cmp()
289 if (s1->seinfo) in seapp_context_cmp()
290 selinux_log(SELINUX_ERROR, " seinfo=%s\n", s1->seinfo); in seapp_context_cmp()
469 if (cur->seinfo) { in selinux_android_seapp_context_reload()
473 cur->seinfo = strdup(value); in selinux_android_seapp_context_reload()
474 if (!cur->seinfo) { in selinux_android_seapp_context_reload()
595 (!cur->seinfo || !strcmp(cur->seinfo, "default"))) { in selinux_android_seapp_context_reload()
629 cur->seinfo, cur->name.str, cur->path.str, in selinux_android_seapp_context_reload()
684 static int32_t get_app_targetSdkVersion(const char *seinfo) in get_app_targetSdkVersion() argument
686 char *substr = strstr(seinfo, TARGETSDKVERSION_STR); in get_app_targetSdkVersion()
726 const char *seinfo, in seapp_context_lookup() argument
747 if (seinfo) { in seapp_context_lookup()
748 if (seinfo_parse(parsedseinfo, seinfo, BUFSIZ)) in seapp_context_lookup()
750 isPrivApp = strstr(seinfo, PRIVILEGED_APP_STR) ? true : false; in seapp_context_lookup()
751 isEphemeralApp = strstr(seinfo, EPHEMERAL_APP_STR) ? true : false; in seapp_context_lookup()
752 isV2App = strstr(seinfo, V2_APP_STR) ? true : false; in seapp_context_lookup()
753 targetSdkVersion = get_app_targetSdkVersion(seinfo); in seapp_context_lookup()
757 __FUNCTION__, uid, seinfo, pkgname); in seapp_context_lookup()
760 seinfo = parsedseinfo; in seapp_context_lookup()
816 if (cur->seinfo) { in seapp_context_lookup()
817 if (!seinfo || strcasecmp(seinfo, cur->seinfo)) in seapp_context_lookup()
906 __FUNCTION__, uid, seinfo, pkgname); in seapp_context_lookup()
921 const char *seinfo, in selinux_android_setfilecon() argument
941 rc = seapp_context_lookup(SEAPP_TYPE, uid, 0, seinfo, pkgname, NULL, ctx); in selinux_android_setfilecon()
992 const char *seinfo, in selinux_android_setcontext() argument
1011 rc = seapp_context_lookup(SEAPP_DOMAIN, uid, isSystemServer, seinfo, pkgname, NULL, ctx); in selinux_android_setcontext()
1045 __FUNCTION__, uid, seinfo, strerror(errno)); in selinux_android_setcontext()
1176 … info->name, info->uid, info->debuggable ? "true" : "false", info->data_dir, info->seinfo); in package_info_init()
1224 const char *seinfo, in pkgdir_selabel_lookup() argument
1286 if (!seinfo) { in pkgdir_selabel_lookup()
1301 … info ? info->seinfo : seinfo, info ? info->name : pkgname, pathname, ctx); in pkgdir_selabel_lookup()
1329 __FUNCTION__, pathname, pkgname, info->seinfo, info->uid, strerror(errno)); in pkgdir_selabel_lookup()
1338 const char *seinfo, uid_t uid) in restorecon_sb() argument
1361 if (pkgdir_selabel_lookup(pathname, seinfo, uid, &secontext) < 0) in restorecon_sb()
1394 const char *seinfo, in selinux_android_restorecon_common() argument
1462 error = restorecon_sb(pathname, &sb, nochange, verbose, seinfo, uid); in selinux_android_restorecon_common()
1558 … error |= restorecon_sb(ftsent->fts_path, ftsent->fts_statp, nochange, verbose, seinfo, uid); in selinux_android_restorecon_common()
1596 const char *seinfo, in selinux_android_restorecon_pkgdir() argument
1600 …return selinux_android_restorecon_common(pkgdir, seinfo, uid, flags | SELINUX_ANDROID_RESTORECON_D… in selinux_android_restorecon_pkgdir()