]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
sysext: fix some sysextisms in confext mode
authorLennart Poettering <lennart@poettering.net>
Thu, 28 Sep 2023 16:24:11 +0000 (18:24 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 5 Oct 2023 17:10:06 +0000 (19:10 +0200)
Nothing earth-shattering. Just make sure we never expose the string
"sysext" in "confext" mode.

src/sysext/sysext.c

index 33bfb3dc80a5b7c70ba772c812e5bd9e7f399da8..784accc15d0262f153bd998037ebcc356fe3207a 100644 (file)
@@ -591,13 +591,13 @@ static int merge_subprocess(Hashmap *images, const char *workspace) {
         /* Let's create the workspace if it's missing */
         r = mkdir_p(workspace, 0700);
         if (r < 0)
-                return log_error_errno(r, "Failed to create /run/systemd/sysext: %m");
+                return log_error_errno(r, "Failed to create '%s': %m", workspace);
 
         /* Let's mount a tmpfs to our workspace. This way we don't need to clean up the inodes we mount over,
          * but let the kernel do that entirely automatically, once our namespace dies. Note that this file
          * system won't be visible to anyone but us, since we opened our own namespace and then made the
          * /run/ hierarchy (which our workspace is contained in) MS_SLAVE, see above. */
-        r = mount_nofollow_verbose(LOG_ERR, "sysext", workspace, "tmpfs", 0, "mode=0700");
+        r = mount_nofollow_verbose(LOG_ERR, image_class_info[arg_image_class].short_identifier, workspace, "tmpfs", 0, "mode=0700");
         if (r < 0)
                 return r;