Home
last modified time | relevance | path

Searched refs:r_opts (Results 1 – 6 of 6) sorted by relevance

/external/selinux/policycoreutils/setfiles/
Drestore.c12 struct restore_opts *r_opts; variable
18 r_opts = opts; in restore_init()
20 { SELABEL_OPT_VALIDATE, r_opts->selabel_opt_validate }, in restore_init()
21 { SELABEL_OPT_PATH, r_opts->selabel_opt_path }, in restore_init()
22 { SELABEL_OPT_DIGEST, r_opts->selabel_opt_digest } in restore_init()
25 r_opts->hnd = selabel_open(SELABEL_CTX_FILE, selinux_opts, 3); in restore_init()
26 if (!r_opts->hnd) { in restore_init()
27 perror(r_opts->selabel_opt_path); in restore_init()
31 r_opts->restorecon_flags = 0; in restore_init()
32 r_opts->restorecon_flags = r_opts->nochange | r_opts->verbose | in restore_init()
[all …]
Dsetfiles.c21 static struct restore_opts r_opts; variable
63 if (nerr > ABORT_ON_ERRORS - 1 && !r_opts.debug) { in inc_err()
73 r_opts.progname, arg); in set_rootpath()
77 r_opts.rootpath = strdup(arg); in set_rootpath()
78 if (!r_opts.rootpath) { in set_rootpath()
81 r_opts.progname); in set_rootpath()
153 fprintf(out, "%s: ", r_opts.progname);
177 memset(&r_opts, 0, sizeof(r_opts));
185 r_opts.progname = strdup(argv[0]);
186 if (!r_opts.progname) {
[all …]
/external/selinux/restorecond/
Drestore.c12 struct restore_opts *r_opts; variable
18 r_opts = opts; in restore_init()
20 { SELABEL_OPT_VALIDATE, r_opts->selabel_opt_validate }, in restore_init()
21 { SELABEL_OPT_PATH, r_opts->selabel_opt_path }, in restore_init()
22 { SELABEL_OPT_DIGEST, r_opts->selabel_opt_digest } in restore_init()
25 r_opts->hnd = selabel_open(SELABEL_CTX_FILE, selinux_opts, 3); in restore_init()
26 if (!r_opts->hnd) { in restore_init()
27 perror(r_opts->selabel_opt_path); in restore_init()
31 r_opts->restorecon_flags = 0; in restore_init()
32 r_opts->restorecon_flags = r_opts->nochange | r_opts->verbose | in restore_init()
[all …]
Drestorecond.c71 struct restore_opts r_opts; variable
84 selabel_close(r_opts.hnd); in done()
148 memset(&r_opts, 0, sizeof(r_opts)); in main()
149 r_opts.ignore_noent = SELINUX_RESTORECON_IGNORE_NOENTRY; in main()
150 r_opts.ignore_digest = SELINUX_RESTORECON_IGNORE_DIGEST; in main()
153 restore_init(&r_opts); in main()
178 r_opts.verbose = SELINUX_RESTORECON_VERBOSE; in main()
Drestorecond.h45 extern struct restore_opts r_opts;
Dwatch.c67 r_opts.restorecon_flags); in watch_list_add()
134 r_opts.restorecon_flags); in watch_list_find()