Home
last modified time | relevance | path

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

/systemd-251/src/libsystemd/sd-bus/
Dtest-bus-error.c26 assert_se(sd_bus_error_has_name(&error, SD_BUS_ERROR_NOT_SUPPORTED)); in TEST()
41 assert_se(!sd_bus_error_has_name(&error, SD_BUS_ERROR_FILE_NOT_FOUND)); in TEST()
49 assert_se(sd_bus_error_has_name(&error, SD_BUS_ERROR_FILE_NOT_FOUND)); in TEST()
62 assert_se(sd_bus_error_has_name(&second, SD_BUS_ERROR_FILE_NOT_FOUND)); in TEST()
76 assert_se(sd_bus_error_has_name(&second, SD_BUS_ERROR_FILE_EXISTS)); in TEST()
87 assert_se(sd_bus_error_has_name(&second, SD_BUS_ERROR_ACCESS_DENIED)); in TEST()
94 assert_se(sd_bus_error_has_name(&error, "System.Error.EUCLEAN")); in TEST()
103 assert_se(sd_bus_error_has_name(&error, "System.Error.EBUSY")); in TEST()
112 assert_se(sd_bus_error_has_name(&error, SD_BUS_ERROR_IO_ERROR)); in TEST()
122 assert_se(!sd_bus_error_has_name(&error, SD_BUS_ERROR_IO_ERROR)); in TEST()
[all …]
Dtest-bus-objects.c319 assert_se(sd_bus_error_has_name(&error, SD_BUS_ERROR_UNKNOWN_METHOD)); in client()
325 assert_se(sd_bus_error_has_name(&error, SD_BUS_ERROR_UNKNOWN_METHOD)); in client()
331 assert_se(sd_bus_error_has_name(&error, SD_BUS_ERROR_INVALID_ARGS)); in client()
453 assert_se(sd_bus_error_has_name(&error, SD_BUS_ERROR_UNKNOWN_INTERFACE)); in client()
458 assert_se(sd_bus_error_has_name(&error, SD_BUS_ERROR_UNKNOWN_METHOD)); in client()
Dbus-error.c369 _public_ int sd_bus_error_has_name(const sd_bus_error *e, const char *name) { in sd_bus_error_has_name() function
594 if (sd_bus_error_has_name(e, SD_BUS_ERROR_ACCESS_DENIED)) in bus_error_message()
Dbus-control.c531 if (!sd_bus_error_has_name(&error, SD_BUS_ERROR_UNKNOWN_METHOD)) in sd_bus_get_name_creds()
696 … if (!sd_bus_error_has_name(&error, "org.freedesktop.DBus.Error.SELinuxSecurityContextUnknown")) in sd_bus_get_name_creds()
/systemd-251/src/home/
Dpam_systemd_home.c162 if (sd_bus_error_has_name(&error, BUS_ERROR_NO_SUCH_HOME)) { in acquire_user_record()
290 if (sd_bus_error_has_name(error, BUS_ERROR_HOME_ABSENT)) { in handle_generic_user_record_error()
295 } else if (sd_bus_error_has_name(error, BUS_ERROR_AUTHENTICATION_LIMIT_HIT)) { in handle_generic_user_record_error()
300 } else if (sd_bus_error_has_name(error, BUS_ERROR_BAD_PASSWORD)) { in handle_generic_user_record_error()
327 } else if (sd_bus_error_has_name(error, BUS_ERROR_BAD_RECOVERY_KEY)) { in handle_generic_user_record_error()
354 } else if (sd_bus_error_has_name(error, BUS_ERROR_BAD_PASSWORD_AND_NO_TOKEN)) { in handle_generic_user_record_error()
380 } else if (sd_bus_error_has_name(error, BUS_ERROR_TOKEN_PIN_NEEDED)) { in handle_generic_user_record_error()
400 … } else if (sd_bus_error_has_name(error, BUS_ERROR_TOKEN_PROTECTED_AUTHENTICATION_PATH_NEEDED)) { in handle_generic_user_record_error()
412 } else if (sd_bus_error_has_name(error, BUS_ERROR_TOKEN_USER_PRESENCE_NEEDED)) { in handle_generic_user_record_error()
424 } else if (sd_bus_error_has_name(error, BUS_ERROR_TOKEN_USER_VERIFICATION_NEEDED)) { in handle_generic_user_record_error()
[all …]
Dhomectl.c388 if (sd_bus_error_has_name(error, BUS_ERROR_HOME_ABSENT)) in handle_generic_user_record_error()
392 else if (sd_bus_error_has_name(error, BUS_ERROR_AUTHENTICATION_LIMIT_HIT)) in handle_generic_user_record_error()
396 else if (sd_bus_error_has_name(error, BUS_ERROR_BAD_PASSWORD)) { in handle_generic_user_record_error()
411 } else if (sd_bus_error_has_name(error, BUS_ERROR_BAD_RECOVERY_KEY)) { in handle_generic_user_record_error()
425 } else if (sd_bus_error_has_name(error, BUS_ERROR_BAD_PASSWORD_AND_NO_TOKEN)) { in handle_generic_user_record_error()
440 } else if (sd_bus_error_has_name(error, BUS_ERROR_TOKEN_PIN_NEEDED)) { in handle_generic_user_record_error()
450 … } else if (sd_bus_error_has_name(error, BUS_ERROR_TOKEN_PROTECTED_AUTHENTICATION_PATH_NEEDED)) { in handle_generic_user_record_error()
460 } else if (sd_bus_error_has_name(error, BUS_ERROR_TOKEN_USER_PRESENCE_NEEDED)) { in handle_generic_user_record_error()
470 } else if (sd_bus_error_has_name(error, BUS_ERROR_TOKEN_USER_VERIFICATION_NEEDED)) { in handle_generic_user_record_error()
480 } else if (sd_bus_error_has_name(error, BUS_ERROR_TOKEN_PIN_LOCKED)) in handle_generic_user_record_error()
[all …]
Dhomed-home.c2135 … log_full_errno(sd_bus_error_has_name(&error, BUS_ERROR_NO_SUCH_UNIT) ? LOG_DEBUG : LOG_WARNING, in home_killall()
/systemd-251/src/resolve/
Dresolvectl.c252 if (r < 0 && !sd_bus_error_has_name(&error, SD_BUS_ERROR_INVALID_ARGS)) in resolve_host()
259 if (sd_bus_error_has_name(&error, SD_BUS_ERROR_INVALID_ARGS)) { in resolve_host()
824 if (r < 0 && !sd_bus_error_has_name(&error, SD_BUS_ERROR_INVALID_ARGS)) in resolve_service()
831 if (sd_bus_error_has_name(&error, SD_BUS_ERROR_INVALID_ARGS)) { in resolve_service()
1211 if (k < 0 && !sd_bus_error_has_name(&error, SD_BUS_ERROR_INVALID_ARGS)) in read_dns_server_one()
2110 if (r < 0 && extended && sd_bus_error_has_name(error, SD_BUS_ERROR_UNKNOWN_METHOD)) { in call_dns()
2137 if (r < 0 && sd_bus_error_has_name(&error, BUS_ERROR_LINK_BUSY)) { in verb_dns()
2144 sd_bus_error_has_name(&error, BUS_ERROR_NO_SUCH_LINK)) in verb_dns()
2217 if (r < 0 && sd_bus_error_has_name(&error, BUS_ERROR_LINK_BUSY)) { in verb_domain()
2224 sd_bus_error_has_name(&error, BUS_ERROR_NO_SUCH_LINK)) in verb_domain()
[all …]
Dtest-dnssec-complex.c63 assert_se(sd_bus_error_has_name(&error, result)); in test_rr_lookup()
100 assert_se(sd_bus_error_has_name(&error, result)); in test_hostname_lookup()
/systemd-251/src/systemctl/
Dsystemctl-util.c103 if (sd_bus_error_has_name(error, BUS_ERROR_NO_SUCH_UNIT)) in translate_bus_error_to_exit_status()
110 if (sd_bus_error_has_name(error, BUS_ERROR_LOAD_FAILED)) in translate_bus_error_to_exit_status()
Dsystemctl-list-unit-files.c214 if (r < 0 && sd_bus_error_has_name(&error, SD_BUS_ERROR_UNKNOWN_METHOD)) { in verb_list_unit_files()
Dsystemctl-start-unit.c94 if (!sd_bus_error_has_name(&enqueue_error, SD_BUS_ERROR_UNKNOWN_METHOD)) { in start_unit_one()
Dsystemctl-logind.c90 if (!sd_bus_error_has_name(&error, SD_BUS_ERROR_UNKNOWN_METHOD)) in logind_reboot()
/systemd-251/src/fsck/
Dfsck.c68 if (r < 0 && !sd_bus_error_has_name(&error, BUS_ERROR_NO_SUCH_JOB)) in start_target()
/systemd-251/src/libsystemd/
Dlibsystemd.sym392 sd_bus_error_has_name;
/systemd-251/src/login/
Dlogind-user.c355 … log_full_errno(sd_bus_error_has_name(&error, BUS_ERROR_UNIT_MASKED) ? LOG_DEBUG : LOG_WARNING, r, in user_start_service()
Dpam_systemd.c921 if (sd_bus_error_has_name(&error, BUS_ERROR_SESSION_BUSY)) { in pam_sm_open_session()
Dlogind-dbus.c4207 if (sd_bus_error_has_name(&error, SD_BUS_ERROR_UNKNOWN_OBJECT)) in manager_job_is_active()
/systemd-251/man/rules/
Dmeson.build260 'sd_bus_error_has_name',
/systemd-251/src/systemd/
Dsd-bus.h456 int sd_bus_error_has_name(const sd_bus_error *e, const char *name);
/systemd-251/src/mount/
Dmount-tool.c866 sd_bus_error_has_name(&error, "org.freedesktop.systemd1.NoSuchUnit")) in stop_mount()
/systemd-251/src/machine/
Dmachined-dbus.c1459 if (sd_bus_error_has_name(&error, SD_BUS_ERROR_UNKNOWN_OBJECT)) in manager_job_is_active()
Dmachinectl.c1536 if (sd_bus_error_has_name(&error, BUS_ERROR_NO_SUCH_IMAGE)) in image_exists()
/systemd-251/src/network/
Dnetworkctl.c1317 bool quiet = sd_bus_error_has_name(&error, SD_BUS_ERROR_UNKNOWN_PROPERTY); in dump_dhcp_leases()
/systemd-251/src/core/
Dunit.c3459 if (!sd_bus_error_has_name(e, "org.freedesktop.DBus.Error.NameHasNoOwner")) { in get_name_owner_handler()