Searched refs:r_opts (Results 1 – 4 of 4) sorted by relevance
/external/selinux/policycoreutils/setfiles/ |
D | setfiles.c | 24 static struct restore_opts r_opts; variable 67 if (nerr > ABORT_ON_ERRORS - 1 && !r_opts.debug) { in inc_err() 79 r_opts.rootpath = strdup(arg); in set_rootpath() 80 if (NULL == r_opts.rootpath) { in set_rootpath() 82 r_opts.progname); in set_rootpath() 87 len = strlen(r_opts.rootpath); in set_rootpath() 88 while (len && ('/' == r_opts.rootpath[len - 1])) in set_rootpath() 89 r_opts.rootpath[--len] = 0; in set_rootpath() 90 r_opts.rootpathlen = len; in set_rootpath() 160 memset(&r_opts, 0, sizeof(r_opts)); [all …]
|
D | restore.c | 37 struct restore_opts *r_opts = NULL; variable 60 r_opts = opts; in restore_init() 62 { SELABEL_OPT_VALIDATE, r_opts->selabel_opt_validate }, in restore_init() 63 { SELABEL_OPT_PATH, r_opts->selabel_opt_path } in restore_init() 65 r_opts->hnd = selabel_open(SELABEL_CTX_FILE, selinux_opts, 2); in restore_init() 66 if (!r_opts->hnd) { in restore_init() 67 perror(r_opts->selabel_opt_path); in restore_init() 82 if (!(r_opts->hard_links) && !S_ISDIR(sb->st_mode) && (sb->st_nlink > 1)) { in match() 88 if (NULL != r_opts->rootpath) { in match() 89 if (0 != strncmp(r_opts->rootpath, name, r_opts->rootpathlen)) { in match() [all …]
|
/external/selinux/policycoreutils/restorecond/ |
D | restorecond.c | 71 static struct restore_opts r_opts; variable 143 memset(&r_opts, 0, sizeof(r_opts)); in main() 145 r_opts.progress = 0; in main() 146 r_opts.count = 0; in main() 147 r_opts.debug = 0; in main() 148 r_opts.change = 1; in main() 149 r_opts.verbose = 0; in main() 150 r_opts.logging = 0; in main() 151 r_opts.rootpath = NULL; in main() 152 r_opts.rootpathlen = 0; in main() [all …]
|
/external/selinux/policycoreutils/ |
D | ChangeLog | 375 * fixfiles: correct usage for r_opts.rootpath
|