]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
bpf: mount bpffs by default on boot
authorLennart Poettering <lennart@poettering.net>
Fri, 16 Feb 2018 13:59:26 +0000 (14:59 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 21 Feb 2018 15:43:36 +0000 (16:43 +0100)
We make heavy use of BPF functionality these days, hence expose the BPF
file system too by default now. (Note however, that we don't actually
make use bpf file systems object yet, but we might later on too.)

src/core/mount-setup.c

index ed78c945d14024ac32d87a58b9925d03b4b115da..e8e572c63e6a7d822962969fc55541ef5167e2b1 100644 (file)
@@ -118,6 +118,8 @@ static const MountPoint mount_table[] = {
         { "efivarfs",    "/sys/firmware/efi/efivars", "efivarfs",   NULL,                      MS_NOSUID|MS_NOEXEC|MS_NODEV,
           is_efi_boot,   MNT_NONE                   },
 #endif
+        { "bpf",         "/sys/fs/bpf",               "bpf",        NULL,                      MS_NOSUID|MS_NOEXEC|MS_NODEV,
+          NULL,          MNT_NONE,                  },
 };
 
 /* These are API file systems that might be mounted by other software,