Home
last modified time | relevance | path

Searched refs:LOOKUP_SCOPE_SYSTEM (Results 1 – 25 of 30) sorted by relevance

12

/systemd-251/src/test/
Dtest-install-root.c26 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 …]
Dtest-install.c35 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 …]
Dtest-path-lookup.c37 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()
Dtest-load-fragment.c46 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 …]
Dtest-bpf-lsm.c92 assert_se(manager_new(LOOKUP_SCOPE_SYSTEM, MANAGER_TEST_RUN_BASIC, &m) >= 0); in main()
Dtest-unit-file.c38 assert_se(lookup_paths_init(&lp, LOOKUP_SCOPE_SYSTEM, 0, NULL) >= 0); in TEST()
Dtest-execute.c1252 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/
Dpath-lookup.c247 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()
Dpath-lookup.h16 LOOKUP_SCOPE_SYSTEM, enumerator
/systemd-251/src/systemctl/
Dsystemctl-start-unit.c171 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()
Dsystemctl-util.c49 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()
Dsystemctl.c69 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()
Dsystemctl-is-enabled.c21 r = unit_file_disable(LOOKUP_SCOPE_SYSTEM, flags, NULL, p, &changes, &n_changes); in show_installation_targets_client_side()
Dsystemctl-start-special.c249 if (arg_scope != LOOKUP_SCOPE_SYSTEM) in verb_start_system_special()
Dsystemctl-sysv-compat.c119 if (arg_scope != LOOKUP_SCOPE_SYSTEM) in enable_sysv_units()
Dsystemctl-edit.c102 arg_scope == LOOKUP_SCOPE_SYSTEM ? "" : " --user", in verb_cat()
/systemd-251/src/analyze/
Danalyze.c92 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()
Danalyze-plot.c81 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()
Danalyze-time-data.c70 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/
Dportable.c234 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/
Dfuzz-unit-file.c69 assert_se(manager_new(LOOKUP_SCOPE_SYSTEM, MANAGER_TEST_RUN_MINIMAL, &m) >= 0); in LLVMFuzzerTestOneInput()
Dmanager.h467 #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)
Dmanager.c814 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/
Dsd-path.c605 LOOKUP_SCOPE_SYSTEM : LOOKUP_SCOPE_USER; in get_search()
619 LOOKUP_SCOPE_SYSTEM : LOOKUP_SCOPE_USER; in get_search()
/systemd-251/src/sysv-generator/
Dsysv-generator.c750 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()

12