Searched refs:set_security_context (Results 1 – 8 of 8) sorted by relevance
/coreutils/src/ |
D | mkdir.c | 103 struct selabel_handle *set_security_context; member 128 if (o->set_security_context in make_ancestor() 129 && defaultcon (o->set_security_context, component, S_IFDIR) < 0 in make_ancestor() 158 if (o->set_security_context) in process_dir() 161 && defaultcon (o->set_security_context, dir, S_IFDIR) < 0 in process_dir() 178 if (ret == EXIT_SUCCESS && o->set_security_context in process_dir() 181 if (! restorecon (o->set_security_context, last_component (dir), false) in process_dir() 202 options.set_security_context = nullptr; in main() 237 options.set_security_context = selabel_open (SELABEL_CTX_FILE, in main() 239 if (! options.set_security_context) in main()
|
D | mkfifo.c | 82 struct selabel_handle *set_security_context = nullptr; in main() local 111 set_security_context = selabel_open (SELABEL_CTX_FILE, in main() 113 if (! set_security_context) in main() 169 if (set_security_context) in main() 170 defaultcon (set_security_context, argv[optind], S_IFIFO); in main()
|
D | mknod.c | 99 struct selabel_handle *set_security_context = nullptr; in main() local 128 set_security_context = selabel_open (SELABEL_CTX_FILE, in main() 130 if (! set_security_context) in main() 253 if (set_security_context) in main() 254 defaultcon (set_security_context, argv[optind], node_type); in main() 262 if (set_security_context) in main() 263 defaultcon (set_security_context, argv[optind], S_IFIFO); in main()
|
D | install.c | 296 x->set_security_context = nullptr; /* Whether to set sys default context. */ in cp_option_init() 371 if (x->set_security_context in make_ancestor() 372 && defaultcon (x->set_security_context, component, S_IFDIR) < 0 in make_ancestor() 400 if (ret == EXIT_SUCCESS && x->set_security_context) in process_dir() 402 if (! restorecon (x->set_security_context, last_component (dir), false) in process_dir() 899 x.set_security_context = get_labeling_handle (); in main() 929 if (x.preserve_security_context && (x.set_security_context || scontext)) in main()
|
D | mv.c | 140 x->set_security_context = nullptr; in cp_option_init() 414 x.set_security_context = selabel_open (SELABEL_CTX_FILE, in main() 416 if (! x.set_security_context) in main()
|
D | cp.c | 574 && (x->set_security_context || x->preserve_security_context)) in make_dir_parents_private() 844 x->set_security_context = nullptr; /* -Z, set sys default context. */ in cp_option_init() 1176 x.set_security_context = selabel_open (SELABEL_CTX_FILE, in main() 1178 if (! x.set_security_context) in main() 1252 if ((x.set_security_context || scontext) in main() 1256 if (x.preserve_security_context && (x.set_security_context || scontext)) in main()
|
D | copy.h | 181 struct selabel_handle *set_security_context; member
|
D | copy.c | 766 = (x->preserve_security_context || x->set_security_context in copy_attr() 1054 else if (x->set_security_context) in set_process_security_ctx() 1058 if (new_dst && defaultcon (x->set_security_context, dst_name, mode) < 0 in set_process_security_ctx() 1085 if (! restorecon (x->set_security_context, dst_name, recurse)) in set_file_security_ctx() 1299 && (x->set_security_context || x->preserve_security_context)) in copy_reg() 1333 if (x->set_security_context) in copy_reg() 2767 if (x->set_security_context) in copy_internal() 2999 if (x->set_security_context || x->preserve_security_context) in copy_internal() 3206 && (x->set_security_context || x->preserve_security_context)) in copy_internal()
|