Revert "nspawn: do not mount /sys/fs/kdbus"
authorAdrian Szyndela <adrian.s@samsung.com>
Wed, 12 Feb 2020 11:08:23 +0000 (12:08 +0100)
committerŁukasz Stelmach <l.stelmach@samsung.com>
Thu, 25 Jan 2024 12:05:13 +0000 (13:05 +0100)
This reverts commit b1679459352885c82b041b0fb376f652cec76994.

There are still people somewhere who need kdbus.

src/nspawn/nspawn-mount.c

index 531f29c..6950300 100644 (file)
@@ -456,6 +456,9 @@ int mount_sysfs(const char *dest, MountSettingsMask mount_settings) {
         if (rmdir(full) < 0)
                 return log_error_errno(errno, "Failed to remove %s: %m", full);
 
+        x = prefix_roota(top, "/fs/kdbus");
+        (void) mkdir_p(x, 0755);
+
         /* Create mountpoint for cgroups. Otherwise we are not allowed since we
          * remount /sys read-only.
          */