• Home
  • Raw
  • Download

Lines Matching refs:ftsent

1435     FTSENT *ftsent;  in selinux_android_restorecon_common()  local
1521 while ((ftsent = fts_read(fts)) != NULL) { in selinux_android_restorecon_common()
1522 switch (ftsent->fts_info) { in selinux_android_restorecon_common()
1525 "SELinux: Directory cycle on %s.\n", ftsent->fts_path); in selinux_android_restorecon_common()
1533 "SELinux: Could not read %s: %s.\n", ftsent->fts_path, strerror(errno)); in selinux_android_restorecon_common()
1534 fts_set(fts, ftsent, FTS_SKIP); in selinux_android_restorecon_common()
1538 "SELinux: Could not stat %s: %s.\n", ftsent->fts_path, strerror(errno)); in selinux_android_restorecon_common()
1539 fts_set(fts, ftsent, FTS_SKIP); in selinux_android_restorecon_common()
1543 "SELinux: Error on %s: %s.\n", ftsent->fts_path, strerror(errno)); in selinux_android_restorecon_common()
1544 fts_set(fts, ftsent, FTS_SKIP); in selinux_android_restorecon_common()
1547 if (issys && !selabel_partial_match(fc_sehandle, ftsent->fts_path)) { in selinux_android_restorecon_common()
1548 fts_set(fts, ftsent, FTS_SKIP); in selinux_android_restorecon_common()
1552 if (!datadata && !fnmatch(USER_PROFILE_PATH, ftsent->fts_path, FNM_PATHNAME)) { in selinux_android_restorecon_common()
1559 if (check_context_match_for_dir(ftsent->fts_path, &new_node, force, error)) { in selinux_android_restorecon_common()
1562 ftsent->fts_path); in selinux_android_restorecon_common()
1563 fts_set(fts, ftsent, FTS_SKIP); in selinux_android_restorecon_common()
1578 … (!strncmp(ftsent->fts_path, DATA_SYSTEM_CE_PREFIX, sizeof(DATA_SYSTEM_CE_PREFIX)-1) || in selinux_android_restorecon_common()
1579 !strncmp(ftsent->fts_path, DATA_MISC_CE_PREFIX, sizeof(DATA_MISC_CE_PREFIX)-1) || in selinux_android_restorecon_common()
1580 … !strncmp(ftsent->fts_path, DATA_VENDOR_CE_PREFIX, sizeof(DATA_VENDOR_CE_PREFIX)-1))) { in selinux_android_restorecon_common()
1582 fts_set(fts, ftsent, FTS_SKIP); in selinux_android_restorecon_common()
1587 (!strcmp(ftsent->fts_path, DATA_DATA_PATH) || in selinux_android_restorecon_common()
1588 !strncmp(ftsent->fts_path, DATA_USER_PREFIX, sizeof(DATA_USER_PREFIX)-1) || in selinux_android_restorecon_common()
1589 !strncmp(ftsent->fts_path, DATA_USER_DE_PREFIX, sizeof(DATA_USER_DE_PREFIX)-1) || in selinux_android_restorecon_common()
1590 !fnmatch(EXPAND_USER_PATH, ftsent->fts_path, FNM_LEADING_DIR|FNM_PATHNAME) || in selinux_android_restorecon_common()
1591 !fnmatch(EXPAND_USER_DE_PATH, ftsent->fts_path, FNM_LEADING_DIR|FNM_PATHNAME))) { in selinux_android_restorecon_common()
1593 fts_set(fts, ftsent, FTS_SKIP); in selinux_android_restorecon_common()
1598 … error |= restorecon_sb(ftsent->fts_path, ftsent->fts_statp, nochange, verbose, seinfo, uid); in selinux_android_restorecon_common()