]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/core/smack-setup.c
test: fix iscsi TEST-64-UDEV-STORAGE on Debian
[thirdparty/systemd.git] / src / core / smack-setup.c
index bcaa237c8dc24d8c3b38cee78d0dfec6473ef281..7ea902b6f9cb59e0c3c1dcf8057cd08f63ebe698 100644 (file)
@@ -11,6 +11,8 @@
 #include <stdlib.h>
 #include <unistd.h>
 
+#include "sd-messages.h"
+
 #include "alloc-util.h"
 #include "dirent-util.h"
 #include "fd-util.h"
@@ -378,7 +380,9 @@ int mac_smack_setup(bool *loaded_policy) {
                 log_info("Successfully wrote Smack onlycap list.");
                 break;
         default:
-                return log_emergency_errno(r, "Failed to write Smack onlycap list: %m");
+                return log_struct_errno(LOG_EMERG, r,
+                                        LOG_MESSAGE("Failed to write Smack onlycap list: %m"),
+                                        "MESSAGE_ID=" SD_MESSAGE_SMACK_FAILED_WRITE_STR);
         }
 
         *loaded_policy = true;