/systemd-251/src/core/ |
D | load-fragment-gperf.gperf.in | 5 …orking_directory, 0, offsetof({{type}}, exec_context) 6 …, true, offsetof({{type}}, exec_context.root_directory) 7 …intf, true, offsetof({{type}}, exec_context.root_image) 8 …oot_image_options, 0, offsetof({{type}}, exec_context) 9 …xec_root_hash, 0, offsetof({{type}}, exec_context) 10 …xec_root_hash_sig, 0, offsetof({{type}}, exec_context) 11 …ntf, true, offsetof({{type}}, exec_context.root_verity) 12 …rv, 0, offsetof({{type}}, exec_context.extension_direc… 13 …xtension_images, 0, offsetof({{type}}, exec_context) 14 …ount_images, 0, offsetof({{type}}, exec_context) [all …]
|
D | mount.c | 180 m->exec_context.std_output = u->manager->default_std_output; in mount_init() 181 m->exec_context.std_error = u->manager->default_std_error; in mount_init() 189 m->exec_context.same_pgrp = true; in mount_init() 578 if (m->exec_context.pam_name && m->kill_context.kill_mode != KILL_CONTROL_GROUP) in mount_verify() 644 r = unit_add_exec_dependencies(u, &m->exec_context); in mount_add_extras() 669 MOUNT(u)->exec_context.std_output = EXEC_OUTPUT_NULL; in mount_load_root_mount() 670 MOUNT(u)->exec_context.std_input = EXEC_INPUT_NULL; in mount_load_root_mount() 816 exec_context_dump(&m->exec_context, f, prefix); in mount_dump() 851 &m->exec_context, in mount_spawn() 881 unit_destroy_runtime_data(UNIT(m), &m->exec_context); in mount_enter_dead() [all …]
|
D | swap.c | 144 s->exec_context.std_output = u->manager->default_std_output; in swap_init() 145 s->exec_context.std_error = u->manager->default_std_error; in swap_init() 291 if (s->exec_context.pam_name && s->kill_context.kill_mode != KILL_CONTROL_GROUP) in swap_verify() 368 r = unit_add_exec_dependencies(UNIT(s), &s->exec_context); in swap_add_extras() 658 exec_context_dump(&s->exec_context, f, prefix); in swap_dump() 693 &s->exec_context, in swap_spawn() 727 unit_destroy_runtime_data(UNIT(s), &s->exec_context); in swap_enter_dead() 1072 … exec_status_exit(&s->control_command->exec_status, &s->exec_context, pid, code, status); in swap_sigchld_event() 1548 r = exec_context_get_clean_directories(&s->exec_context, u->manager->prefix, mask, &l); in swap_clean() 1560 r = swap_arm_timer(s, usec_add(now(CLOCK_MONOTONIC), s->exec_context.timeout_clean_usec)); in swap_clean() [all …]
|
D | socket.c | 97 s->exec_context.std_output = u->manager->default_std_output; in socket_init() 98 s->exec_context.std_error = u->manager->default_std_error; in socket_init() 350 r = unit_add_exec_dependencies(u, &s->exec_context); in socket_add_extras() 413 if (s->exec_context.pam_name && s->kill_context.kill_mode != KILL_CONTROL_GROUP) in socket_verify() 790 exec_context_dump(&s->exec_context, f, prefix); in socket_dump() 1437 …r = chase_symlinks(c->path, SERVICE(service)->exec_context.root_directory, CHASE_PREFIX_ROOT, &pat… in socket_determine_selinux_label() 1519 r = fork_needed(address, &s->exec_context); in socket_address_listen_in_cgroup() 1535 if (s->exec_context.network_namespace_path && in socket_address_listen_in_cgroup() 1538 …r = open_shareable_ns_path(s->exec_runtime->netns_storage_socket, s->exec_context.network_namespac… in socket_address_listen_in_cgroup() 1540 …_errno(UNIT(s), r, "Failed to open network namespace path %s: %m", s->exec_context.network_namespa… in socket_address_listen_in_cgroup() [all …]
|
D | service.c | 121 s->exec_context.keyring_mode = MANAGER_IS_SYSTEM(u->manager) ? in service_init() 611 …if (s->exec_context.pam_name && !IN_SET(s->kill_context.kill_mode, KILL_CONTROL_GROUP, KILL_MIXED)) in service_verify() 679 if (s->exec_context.std_input == EXEC_INPUT_NULL && in service_fix_stdio() 680 s->exec_context.stdin_data_size > 0) in service_fix_stdio() 681 s->exec_context.std_input = EXEC_INPUT_DATA; in service_fix_stdio() 683 if (IN_SET(s->exec_context.std_input, in service_fix_stdio() 697 if (s->exec_context.std_error == EXEC_OUTPUT_INHERIT && in service_fix_stdio() 698 s->exec_context.std_output == EXEC_OUTPUT_INHERIT) in service_fix_stdio() 699 s->exec_context.std_error = UNIT(s)->manager->default_std_error; in service_fix_stdio() 701 if (s->exec_context.std_output == EXEC_OUTPUT_INHERIT) in service_fix_stdio() [all …]
|
D | dbus-service.c | 528 …return bus_set_transient_std_fd(u, name, &s->stdin_fd, &s->exec_context.stdio_as_fds, message, fla… in bus_service_set_transient_property() 531 …return bus_set_transient_std_fd(u, name, &s->stdout_fd, &s->exec_context.stdio_as_fds, message, fl… in bus_service_set_transient_property() 534 …return bus_set_transient_std_fd(u, name, &s->stderr_fd, &s->exec_context.stdio_as_fds, message, fl… in bus_service_set_transient_property() 564 … r = bus_exec_context_set_transient_property(u, &s->exec_context, name, message, flags, error); in bus_service_set_property()
|
D | mount.h | 74 ExecContext exec_context; member
|
D | swap.h | 66 ExecContext exec_context; member
|
D | socket.h | 89 ExecContext exec_context; member
|
D | service.h | 135 ExecContext exec_context; member
|
D | dbus-mount.c | 137 … r = bus_exec_context_set_transient_property(u, &m->exec_context, name, message, flags, error); in bus_mount_set_property()
|
D | dbus-socket.c | 464 … r = bus_exec_context_set_transient_property(u, &s->exec_context, name, message, flags, error); in bus_socket_set_property()
|
D | execute.c | 4947 char *exec_context = mac_selinux_context_net ?: context->selinux_context; in exec_child() local 4949 if (exec_context) { in exec_child() 4950 r = setexeccon(exec_context); in exec_child() 4954 … return log_unit_error_errno(unit, r, "Failed to change SELinux context to %s: %m", exec_context); in exec_child() 4956 …og_unit_debug_errno(unit, r, "Failed to change SELinux context to %s, ignoring: %m", exec_context); in exec_child()
|
/systemd-251/src/test/ |
D | test-sched-prio.c | 42 assert_se(ser->exec_context.cpu_sched_policy == SCHED_OTHER); in main() 43 assert_se(ser->exec_context.cpu_sched_priority == 0); in main() 50 assert_se(ser->exec_context.cpu_sched_policy == SCHED_OTHER); in main() 51 assert_se(ser->exec_context.cpu_sched_priority == 0); in main() 59 assert_se(ser->exec_context.cpu_sched_policy == SCHED_RR); in main() 60 assert_se(ser->exec_context.cpu_sched_priority == 1); in main() 68 assert_se(ser->exec_context.cpu_sched_policy == SCHED_RR); in main() 69 assert_se(ser->exec_context.cpu_sched_priority == 1); in main() 77 assert_se(ser->exec_context.cpu_sched_policy == SCHED_RR); in main() 78 assert_se(ser->exec_context.cpu_sched_priority == 99); in main()
|
D | test-execute.c | 61 exec_context_dump(&service->exec_context, stdout, "\t"); in wait_for_service_finish()
|