Searched refs:running_as (Results 1 - 25 of 25) sorted by relevance

/systemd/src/analyze/
H A Danalyze-verify.h26 int verify_units(char **filenames, ManagerRunningAs running_as, bool check_man);
H A Danalyze-verify.c234 int verify_units(char **filenames, ManagerRunningAs running_as, bool check_man) { argument
258 r = manager_new(running_as, true, &m);
/systemd/src/test/
H A Dtest-path-lookup.c29 static void test_paths(ManagerRunningAs running_as, bool personal) { argument
42 assert_se(lookup_paths_init(&lp_without_env, running_as, personal, NULL, exists, not, not) == 0);
50 assert_se(lookup_paths_init(&lp_with_env, running_as, personal, NULL, exists, not, not) == 0);
57 static void print_generator_paths(ManagerRunningAs running_as) { argument
61 log_info("Generators dirs (%s):", running_as == MANAGER_SYSTEM ? "system" : "user");
63 paths = generator_paths(running_as);
/systemd/src/shared/
H A Dpath-lookup.h43 char **generator_paths(ManagerRunningAs running_as);
46 ManagerRunningAs running_as,
H A Dpath-lookup.c223 char **generator_paths(ManagerRunningAs running_as) { argument
224 if (running_as == MANAGER_USER)
240 ManagerRunningAs running_as,
282 if (running_as == MANAGER_USER) {
341 if (running_as == MANAGER_SYSTEM) {
238 lookup_paths_init( LookupPaths *p, ManagerRunningAs running_as, bool personal, const char *root_dir, const char *generator, const char *generator_early, const char *generator_late) argument
/systemd/src/core/
H A Dfailure-action.c50 if (m->running_as == MANAGER_USER) {
H A Dmanager.c494 if (m->running_as == MANAGER_SYSTEM)
521 if (m->running_as == MANAGER_SYSTEM) {
550 int manager_new(ManagerRunningAs running_as, bool test_run, Manager **_m) { argument
566 assert(running_as >= 0);
567 assert(running_as < _MANAGER_RUNNING_AS_MAX);
574 if (running_as == MANAGER_SYSTEM && detect_container() <= 0)
578 m->running_as = running_as;
585 m->unit_log_field = unit_log_fields[running_as];
586 m->unit_log_format_string = unit_log_format_strings[running_as];
[all...]
H A Ddbus.c115 if (m->running_as == MANAGER_SYSTEM && m->system_bus) {
693 if (m->running_as == MANAGER_SYSTEM) {
867 if (m->running_as == MANAGER_SYSTEM && m->system_bus)
870 if (m->running_as == MANAGER_SYSTEM)
910 if (m->running_as == MANAGER_USER || m->kdbus_fd >= 0) {
935 if (m->running_as == MANAGER_SYSTEM && m->api_bus) {
986 if (m->running_as == MANAGER_SYSTEM) {
1085 if (m->running_as != MANAGER_SYSTEM)
H A Dmanager.h231 ManagerRunningAs running_as; member in struct:Manager
310 int manager_new(ManagerRunningAs running_as, bool test_run, Manager **m);
H A Ddbus-manager.c1190 if (m->running_as != MANAGER_SYSTEM)
1209 if (m->running_as != MANAGER_SYSTEM)
1228 if (m->running_as != MANAGER_SYSTEM)
1247 if (m->running_as != MANAGER_SYSTEM)
1268 if (m->running_as != MANAGER_SYSTEM)
1436 if (m->running_as == MANAGER_SYSTEM && detect_container() <= 0)
1469 r = unit_file_get_list(m->running_as == MANAGER_SYSTEM ? UNIT_FILE_SYSTEM : UNIT_FILE_USER, NULL, h);
1517 scope = m->running_as == MANAGER_SYSTEM ? UNIT_FILE_SYSTEM : UNIT_FILE_USER;
1541 scope = m->running_as == MANAGER_SYSTEM ? UNIT_FILE_SYSTEM : UNIT_FILE_USER;
1647 scope = m->running_as
[all...]
H A Dunit-printf.c143 if (u->manager->running_as == MANAGER_SYSTEM)
H A Dmount.c331 if (mount_is_auto(p) && UNIT(m)->manager->running_as == MANAGER_SYSTEM)
347 if (UNIT(m)->manager->running_as != MANAGER_SYSTEM)
393 if (UNIT(m)->manager->running_as != MANAGER_SYSTEM)
1388 if (m->running_as == MANAGER_SYSTEM) {
1416 if (m->running_as == MANAGER_SYSTEM &&
H A Dunit.c817 if (u->manager->running_as != MANAGER_SYSTEM)
2416 if (u->manager->running_as == MANAGER_SYSTEM)
2426 u->manager->running_as == MANAGER_SYSTEM && !unit_has_name(u, SPECIAL_INIT_SCOPE)
2887 u->manager->running_as == MANAGER_SYSTEM ? dep : UNIT_WANTS,
3165 u->manager->running_as == MANAGER_SYSTEM ? UNIT_FILE_SYSTEM : UNIT_FILE_USER,
3181 u->manager->running_as == MANAGER_SYSTEM ? UNIT_FILE_SYSTEM : UNIT_FILE_USER,
3232 if (u->manager->running_as == MANAGER_USER &&
3244 if (u->manager->running_as == MANAGER_USER &&
3325 if (u->manager->running_as == MANAGER_USER) {
H A Dbusname.c152 if (UNIT(n)->manager->running_as == MANAGER_SYSTEM) {
321 mode = UNIT(n)->manager->running_as == MANAGER_SYSTEM ? "system" : "user";
H A Dtimer.c112 if (UNIT(t)->manager->running_as == MANAGER_SYSTEM) {
138 if (UNIT(t)->manager->running_as == MANAGER_SYSTEM) {
H A Ddevice.c268 property = u->manager->running_as == MANAGER_USER ? "SYSTEMD_USER_WANTS" : "SYSTEMD_WANTS";
H A Dpath.c323 if (UNIT(p)->manager->running_as == MANAGER_SYSTEM) {
H A Dcgroup.c1268 if (!e && m->running_as == MANAGER_SYSTEM) {
1321 } else if (m->running_as == MANAGER_SYSTEM) {
H A Dswap.c201 return unit_add_node_link(UNIT(s), s->what, UNIT(s)->manager->running_as == MANAGER_SYSTEM, UNIT_BINDS_TO);
217 if (UNIT(s)->manager->running_as != MANAGER_SYSTEM)
H A Dautomount.c152 if (UNIT(a)->manager->running_as != MANAGER_SYSTEM)
H A Djob.c1151 if (j->unit->manager->running_as != MANAGER_SYSTEM)
H A Dmain.c1886 if (m->running_as == MANAGER_USER) {
H A Dservice.c528 if (UNIT(s)->manager->running_as == MANAGER_SYSTEM) {
1224 if (UNIT(s)->manager->running_as != MANAGER_SYSTEM)
1271 r = bus_kernel_create_endpoint(UNIT(s)->manager->running_as == MANAGER_SYSTEM ? "system" : "user",
H A Dsocket.c304 if (UNIT(s)->manager->running_as == MANAGER_SYSTEM) {
H A Dload-fragment.c2592 if (!c->no_new_privileges_set && u->manager->running_as == MANAGER_USER)

Completed in 424 milliseconds