Home
last modified time | relevance | path

Searched refs:ftsent (Results 1 – 3 of 3) sorted by relevance

/external/selinux/policycoreutils/setfiles/
Drestore.c103 static int restore(FTSENT *ftsent, int recurse) in restore() argument
105 char *my_file = strdupa(ftsent->fts_path); in restore()
109 if (match(my_file, ftsent->fts_statp, &newcon) < 0) { in restore()
139 ret = filespec_add(ftsent->fts_statp->st_ino, newcon, my_file); in restore()
161 ret = lgetfilecon_raw(ftsent->fts_accpath, &curcon); in restore()
256 ret = lsetfilecon(ftsent->fts_accpath, newcon); in restore()
281 static int apply_spec(FTSENT *ftsent, int recurse) in apply_spec() argument
283 if (ftsent->fts_info == FTS_DNR) { in apply_spec()
285 r_opts->progname, ftsent->fts_path); in apply_spec()
289 int rc = restore(ftsent, recurse); in apply_spec()
[all …]
/external/libselinux/src/
Dandroid.c1295 FTSENT *ftsent; in selinux_android_restorecon_common() local
1388 while ((ftsent = fts_read(fts)) != NULL) { in selinux_android_restorecon_common()
1389 switch (ftsent->fts_info) { in selinux_android_restorecon_common()
1392 "SELinux: Directory cycle on %s.\n", ftsent->fts_path); in selinux_android_restorecon_common()
1400 "SELinux: Could not read %s: %s.\n", ftsent->fts_path, strerror(errno)); in selinux_android_restorecon_common()
1401 fts_set(fts, ftsent, FTS_SKIP); in selinux_android_restorecon_common()
1405 "SELinux: Could not stat %s: %s.\n", ftsent->fts_path, strerror(errno)); in selinux_android_restorecon_common()
1406 fts_set(fts, ftsent, FTS_SKIP); in selinux_android_restorecon_common()
1410 "SELinux: Error on %s: %s.\n", ftsent->fts_path, strerror(errno)); in selinux_android_restorecon_common()
1411 fts_set(fts, ftsent, FTS_SKIP); in selinux_android_restorecon_common()
[all …]
/external/selinux/policycoreutils/
DChangeLog293 * setfiles: Fix potential crash using dereferenced ftsent