]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core: don't mount kdbusfs if not wanted
authorDavid Herrmann <dh.herrmann@gmail.com>
Sun, 5 Jul 2015 09:25:38 +0000 (11:25 +0200)
committerDavid Herrmann <dh.herrmann@gmail.com>
Sun, 5 Jul 2015 09:25:38 +0000 (11:25 +0200)
Just like we conditionalize loading kdbus.ko, we should conditionalize
mounting kdbusfs. Otherwise, we might run with kdbus if it is builtin,
even though the user didn't want this.

src/core/mount-setup.c

index 42a6b952b967a6b2afb7fa0f4055d96b582dd930..163b35f83ab6b082dc4778262865e14030df7316 100644 (file)
@@ -105,7 +105,7 @@ static const MountPoint mount_table[] = {
           is_efi_boot,   MNT_NONE                   },
 #endif
         { "kdbusfs",    "/sys/fs/kdbus",             "kdbusfs",    NULL, MS_NOSUID|MS_NOEXEC|MS_NODEV,
-          NULL,       MNT_IN_CONTAINER },
+          is_kdbus_wanted,       MNT_IN_CONTAINER },
 };
 
 /* These are API file systems that might be mounted by other software,