Lines Matching refs:ftsent
845 FTSENT *ftsent; in selinux_restorecon() local
968 ftsent = fts_read(fts); in selinux_restorecon()
969 if (!ftsent) in selinux_restorecon()
981 dev_num = ftsent->fts_statp->st_dev; in selinux_restorecon()
986 if (flags.set_xdev && ftsent->fts_statp->st_dev != dev_num) in selinux_restorecon()
989 switch (ftsent->fts_info) { in selinux_restorecon()
993 ftsent->fts_path); in selinux_restorecon()
1002 ftsent->fts_path, in selinux_restorecon()
1003 strerror(ftsent->fts_errno)); in selinux_restorecon()
1004 fts_set(fts, ftsent, FTS_SKIP); in selinux_restorecon()
1009 ftsent->fts_path, in selinux_restorecon()
1010 strerror(ftsent->fts_errno)); in selinux_restorecon()
1011 fts_set(fts, ftsent, FTS_SKIP); in selinux_restorecon()
1016 ftsent->fts_path, in selinux_restorecon()
1017 strerror(ftsent->fts_errno)); in selinux_restorecon()
1018 fts_set(fts, ftsent, FTS_SKIP); in selinux_restorecon()
1023 ftsent->fts_path)) { in selinux_restorecon()
1024 fts_set(fts, ftsent, FTS_SKIP); in selinux_restorecon()
1028 if (check_excluded(ftsent->fts_path)) { in selinux_restorecon()
1029 fts_set(fts, ftsent, FTS_SKIP); in selinux_restorecon()
1036 if (check_context_match_for_dir(ftsent->fts_path, in selinux_restorecon()
1042 ftsent->fts_path); in selinux_restorecon()
1043 fts_set(fts, ftsent, FTS_SKIP); in selinux_restorecon()
1059 error |= restorecon_sb(ftsent->fts_path, in selinux_restorecon()
1060 ftsent->fts_statp, &flags); in selinux_restorecon()
1067 } while ((ftsent = fts_read(fts)) != NULL); in selinux_restorecon()
1248 FTSENT *ftsent; in selinux_restorecon_xattr() local
1297 while ((ftsent = fts_read(fts)) != NULL) { in selinux_restorecon_xattr()
1298 switch (ftsent->fts_info) { in selinux_restorecon_xattr()
1302 if (statfs(ftsent->fts_path, &sfsb) == 0) { in selinux_restorecon_xattr()
1307 if (check_excluded(ftsent->fts_path)) { in selinux_restorecon_xattr()
1308 fts_set(fts, ftsent, FTS_SKIP); in selinux_restorecon_xattr()
1312 rc = add_xattr_entry(ftsent->fts_path, in selinux_restorecon_xattr()