]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core/service: append the original error cause in the debugging logs 36929/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 31 Jul 2026 02:25:24 +0000 (11:25 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 31 Jul 2026 02:30:32 +0000 (11:30 +0900)
src/core/service.c

index 8950eed5396c4a1b12f91755a82abe6112718414..1c8460b136475a1d32e43d25cd8016723dfdbaf5 100644 (file)
@@ -6294,17 +6294,17 @@ int service_determine_exec_selinux_label(Service *s, char **ret) {
         else
                 r = chase(c->path, s->exec_context.root_directory, CHASE_PREFIX_ROOT|CHASE_TRIGGER_AUTOFS, &path, NULL);
         if (r < 0) {
-                log_unit_debug_errno(UNIT(s), r, "Failed to resolve service binary '%s', ignoring.", c->path);
+                log_unit_debug_errno(UNIT(s), r, "Failed to resolve service binary '%s', ignoring: %m", c->path);
                 return -ENODATA;
         }
 
         r = mac_selinux_get_create_label_from_exe(path, ret);
         if (ERRNO_IS_NEG_NOT_SUPPORTED(r)) {
-                log_unit_debug_errno(UNIT(s), r, "Reading SELinux label off binary '%s' is not supported, ignoring.", path);
+                log_unit_debug_errno(UNIT(s), r, "Reading SELinux label off binary '%s' is not supported, ignoring: %m", path);
                 return -ENODATA;
         }
         if (ERRNO_IS_NEG_PRIVILEGE(r)) {
-                log_unit_debug_errno(UNIT(s), r, "Can't read SELinux label off binary '%s', due to privileges, ignoring.", path);
+                log_unit_debug_errno(UNIT(s), r, "Can't read SELinux label off binary '%s', due to privileges, ignoring: %m", path);
                 return -ENODATA;
         }
         if (r < 0) {