/systemd-251/src/test/ |
D | test-install-root.c | 26 assert_se(unit_file_get_state(LOOKUP_SCOPE_SYSTEM, root, "a.service", NULL) == -ENOENT); in TEST() 27 assert_se(unit_file_get_state(LOOKUP_SCOPE_SYSTEM, root, "b.service", NULL) == -ENOENT); in TEST() 28 assert_se(unit_file_get_state(LOOKUP_SCOPE_SYSTEM, root, "c.service", NULL) == -ENOENT); in TEST() 29 assert_se(unit_file_get_state(LOOKUP_SCOPE_SYSTEM, root, "d.service", NULL) == -ENOENT); in TEST() 30 assert_se(unit_file_get_state(LOOKUP_SCOPE_SYSTEM, root, "e.service", NULL) == -ENOENT); in TEST() 31 assert_se(unit_file_get_state(LOOKUP_SCOPE_SYSTEM, root, "f.service", NULL) == -ENOENT); in TEST() 38 assert_se(unit_file_get_state(LOOKUP_SCOPE_SYSTEM, root, "a.service", NULL) >= 0); in TEST() 39 …assert_se(unit_file_get_state(LOOKUP_SCOPE_SYSTEM, root, "a.service", &state) >= 0 && state == UNI… in TEST() 44 assert_se(unit_file_get_state(LOOKUP_SCOPE_SYSTEM, root, "b.service", NULL) >= 0); in TEST() 45 …assert_se(unit_file_get_state(LOOKUP_SCOPE_SYSTEM, root, "b.service", &state) >= 0 && state == UNI… in TEST() [all …]
|
D | test-install.c | 35 r = unit_file_get_list(LOOKUP_SCOPE_SYSTEM, NULL, h, NULL, NULL); in main() 41 r = unit_file_get_state(LOOKUP_SCOPE_SYSTEM, NULL, basename(p->path), &s); in main() 55 r = unit_file_enable(LOOKUP_SCOPE_SYSTEM, 0, NULL, (char**) files, &changes, &n_changes); in main() 60 r = unit_file_enable(LOOKUP_SCOPE_SYSTEM, 0, NULL, (char**) files, &changes, &n_changes); in main() 66 r = unit_file_get_state(LOOKUP_SCOPE_SYSTEM, NULL, files[0], &state); in main() 74 r = unit_file_disable(LOOKUP_SCOPE_SYSTEM, 0, NULL, (char**) files, &changes, &n_changes); in main() 80 r = unit_file_get_state(LOOKUP_SCOPE_SYSTEM, NULL, files[0], &state); in main() 88 r = unit_file_mask(LOOKUP_SCOPE_SYSTEM, 0, NULL, (char**) files, &changes, &n_changes); in main() 91 r = unit_file_mask(LOOKUP_SCOPE_SYSTEM, 0, NULL, (char**) files, &changes, &n_changes); in main() 97 r = unit_file_get_state(LOOKUP_SCOPE_SYSTEM, NULL, files[0], &state); in main() [all …]
|
D | test-path-lookup.c | 37 test_paths_one(LOOKUP_SCOPE_SYSTEM); in TEST() 88 … env_gp_without_env = env_generator_binary_paths(scope == LOOKUP_SCOPE_SYSTEM ? true : false); in test_generator_binary_paths_one() 90 log_info("Generators dirs (%s):", scope == LOOKUP_SCOPE_SYSTEM ? "system" : "user"); in test_generator_binary_paths_one() 94 … log_info("Environment generators dirs (%s):", scope == LOOKUP_SCOPE_SYSTEM ? "system" : "user"); in test_generator_binary_paths_one() 107 env_gp_with_env = env_generator_binary_paths(scope == LOOKUP_SCOPE_SYSTEM ? true : false); in test_generator_binary_paths_one() 109 log_info("Generators dirs (%s):", scope == LOOKUP_SCOPE_SYSTEM ? "system" : "user"); in test_generator_binary_paths_one() 113 … log_info("Environment generators dirs (%s):", scope == LOOKUP_SCOPE_SYSTEM ? "system" : "user"); in test_generator_binary_paths_one() 122 test_generator_binary_paths_one(LOOKUP_SCOPE_SYSTEM); in TEST()
|
D | test-load-fragment.c | 46 r = unit_file_get_list(LOOKUP_SCOPE_SYSTEM, NULL, h, NULL, NULL); in TEST_RET() 547 expect(LOOKUP_SCOPE_SYSTEM, i, "%n", "name.service"); 548 expect(LOOKUP_SCOPE_SYSTEM, i, "%N", "name"); 549 expect(LOOKUP_SCOPE_SYSTEM, i, "%p", "name"); 550 expect(LOOKUP_SCOPE_SYSTEM, i, "%i", ""); 551 expect(LOOKUP_SCOPE_SYSTEM, i, "%j", "name"); 552 expect(LOOKUP_SCOPE_SYSTEM, i, "%g", "root"); 553 expect(LOOKUP_SCOPE_SYSTEM, i, "%G", "0"); 554 expect(LOOKUP_SCOPE_SYSTEM, i, "%u", "root"); 555 expect(LOOKUP_SCOPE_SYSTEM, i, "%U", "0"); [all …]
|
D | test-bpf-lsm.c | 92 assert_se(manager_new(LOOKUP_SCOPE_SYSTEM, MANAGER_TEST_RUN_BASIC, &m) >= 0); in main()
|
D | test-unit-file.c | 38 assert_se(lookup_paths_init(&lp, LOOKUP_SCOPE_SYSTEM, 0, NULL) >= 0); in TEST()
|
D | test-execute.c | 1252 r = run_tests(LOOKUP_SCOPE_SYSTEM, system_tests, argv + 1); in main() 1278 return run_tests(LOOKUP_SCOPE_SYSTEM, system_tests, argv + 1); in main()
|
/systemd-251/src/basic/ |
D | path-lookup.c | 247 assert(IN_SET(scope, LOOKUP_SCOPE_SYSTEM, LOOKUP_SCOPE_USER, LOOKUP_SCOPE_GLOBAL)); in acquire_generator_dirs() 254 else if (scope == LOOKUP_SCOPE_SYSTEM) in acquire_generator_dirs() 298 assert(IN_SET(scope, LOOKUP_SCOPE_SYSTEM, LOOKUP_SCOPE_USER, LOOKUP_SCOPE_GLOBAL)); in acquire_transient_dir() 305 else if (scope == LOOKUP_SCOPE_SYSTEM) in acquire_transient_dir() 325 case LOOKUP_SCOPE_SYSTEM: in acquire_config_dirs() 376 case LOOKUP_SCOPE_SYSTEM: { in acquire_control_dirs() 432 if (scope != LOOKUP_SCOPE_SYSTEM) in acquire_attached_dirs() 609 case LOOKUP_SCOPE_SYSTEM: in lookup_paths_init() 808 case LOOKUP_SCOPE_SYSTEM: in generator_binary_paths()
|
D | path-lookup.h | 16 LOOKUP_SCOPE_SYSTEM, enumerator
|
/systemd-251/src/systemctl/ |
D | systemctl-start-unit.c | 171 arg_scope == LOOKUP_SCOPE_SYSTEM ? "system" : "user", in start_unit_one() 172 arg_scope == LOOKUP_SCOPE_SYSTEM ? "" : " --user", in start_unit_one() 245 if (arg_scope != LOOKUP_SCOPE_SYSTEM) in make_extra_args()
|
D | systemctl-util.c | 49 user = arg_scope != LOOKUP_SCOPE_SYSTEM; in acquire_bus() 76 if (arg_scope != LOOKUP_SCOPE_SYSTEM) in ask_password_agent_open_maybe() 85 if (arg_scope != LOOKUP_SCOPE_SYSTEM) in polkit_agent_open_maybe() 383 arg_scope == LOOKUP_SCOPE_SYSTEM ? "" : " --user"); in warn_unit_file_changed()
|
D | systemctl.c | 69 LookupScope arg_scope = LOOKUP_SCOPE_SYSTEM; 623 arg_scope = LOOKUP_SCOPE_SYSTEM; in systemctl_parse_argv() 927 if (arg_scope != LOOKUP_SCOPE_SYSTEM) in systemctl_parse_argv() 930 if (arg_transport == BUS_TRANSPORT_REMOTE && arg_scope != LOOKUP_SCOPE_SYSTEM) in systemctl_parse_argv()
|
D | systemctl-is-enabled.c | 21 r = unit_file_disable(LOOKUP_SCOPE_SYSTEM, flags, NULL, p, &changes, &n_changes); in show_installation_targets_client_side()
|
D | systemctl-start-special.c | 249 if (arg_scope != LOOKUP_SCOPE_SYSTEM) in verb_start_system_special()
|
D | systemctl-sysv-compat.c | 119 if (arg_scope != LOOKUP_SCOPE_SYSTEM) in enable_sysv_units()
|
D | systemctl-edit.c | 102 arg_scope == LOOKUP_SCOPE_SYSTEM ? "" : " --user", in verb_cat()
|
/systemd-251/src/analyze/ |
D | analyze.c | 92 LookupScope arg_scope = LOOKUP_SCOPE_SYSTEM; 117 bool user = arg_scope != LOOKUP_SCOPE_SYSTEM; in acquire_bus() 354 arg_scope = LOOKUP_SCOPE_SYSTEM; in parse_argv()
|
D | analyze-plot.c | 81 if (arg_scope != LOOKUP_SCOPE_SYSTEM) { in acquire_host_info() 186 bool use_full_bus = arg_scope == LOOKUP_SCOPE_SYSTEM; in verb_plot() 204 if (use_full_bus || arg_scope != LOOKUP_SCOPE_SYSTEM) { in verb_plot()
|
D | analyze-time-data.c | 70 arg_scope == LOOKUP_SCOPE_SYSTEM ? "" : " --user"); in acquire_boot_times() 72 if (arg_scope == LOOKUP_SCOPE_SYSTEM && times.security_start_time > 0) { in acquire_boot_times()
|
/systemd-251/src/portable/ |
D | portable.c | 234 r = lookup_paths_init(&paths, LOOKUP_SCOPE_SYSTEM, LOOKUP_PATHS_SPLIT_USR, where); in extract_now() 1348 r = lookup_paths_init(&paths, LOOKUP_SCOPE_SYSTEM, LOOKUP_PATHS_SPLIT_USR, NULL); in portable_attach() 1353 r = unit_file_exists(LOOKUP_SCOPE_SYSTEM, &paths, item->name); in portable_attach() 1547 r = lookup_paths_init(&paths, LOOKUP_SCOPE_SYSTEM, LOOKUP_PATHS_SPLIT_USR, NULL); in portable_detach() 1581 r = unit_file_lookup_state(LOOKUP_SCOPE_SYSTEM, &paths, de->d_name, &state); in portable_detach() 1725 r = lookup_paths_init(&paths, LOOKUP_SCOPE_SYSTEM, LOOKUP_PATHS_SPLIT_USR, NULL); in portable_get_state_internal() 1761 r = unit_file_lookup_state(LOOKUP_SCOPE_SYSTEM, &paths, de->d_name, &state); in portable_get_state_internal()
|
/systemd-251/src/core/ |
D | fuzz-unit-file.c | 69 assert_se(manager_new(LOOKUP_SCOPE_SYSTEM, MANAGER_TEST_RUN_MINIMAL, &m) >= 0); in LLVMFuzzerTestOneInput()
|
D | manager.h | 467 #define MANAGER_IS_SYSTEM(m) ((m)->unit_file_scope == LOOKUP_SCOPE_SYSTEM) 468 #define MANAGER_IS_USER(m) ((m)->unit_file_scope != LOOKUP_SCOPE_SYSTEM)
|
D | manager.c | 814 assert(IN_SET(scope, LOOKUP_SCOPE_SYSTEM, LOOKUP_SCOPE_USER)); in manager_new() 1731 … r = unit_file_preset_all(LOOKUP_SCOPE_SYSTEM, 0, NULL, UNIT_FILE_PRESET_ENABLE_ONLY, NULL, 0); in manager_preset_all()
|
/systemd-251/src/libsystemd/sd-path/ |
D | sd-path.c | 605 LOOKUP_SCOPE_SYSTEM : LOOKUP_SCOPE_USER; in get_search() 619 LOOKUP_SCOPE_SYSTEM : LOOKUP_SCOPE_USER; in get_search()
|
/systemd-251/src/sysv-generator/ |
D | sysv-generator.c | 750 r = unit_file_exists(LOOKUP_SCOPE_SYSTEM, lp, name); in enumerate_sysv() 894 … r = lookup_paths_init_or_warn(&lp, LOOKUP_SCOPE_SYSTEM, LOOKUP_PATHS_EXCLUDE_GENERATED, NULL); in run()
|