aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/files/etc
diff options
context:
space:
mode:
authorTony Ambardar <itugrok@yahoo.com>2020-07-22 06:28:06 -0700
committerDaniel Golle <daniel@makrotopia.org>2020-07-31 13:43:03 +0100
commit217877d046414878126e5c8013162e3b7edc774c (patch)
tree91d765bbd439ad9f18a261e39d92648a4813f2a0 /package/base-files/files/etc
parenta4856dab0d7d68b03b4925e8fea183fe788eb7d7 (diff)
downloadupstream-217877d046414878126e5c8013162e3b7edc774c.tar.gz
upstream-217877d046414878126e5c8013162e3b7edc774c.tar.bz2
upstream-217877d046414878126e5c8013162e3b7edc774c.zip
base-files: mount bpffs at boot
Explicitly mount the BPF filesystem if available. This is used for pinning eBPF programs and maps, making them accessible to other eBPF programs or from userspace with the help of libbpf or bpftool. Signed-off-by: Tony Ambardar <itugrok@yahoo.com> [daniel@makrotopia.org: bumped PKG_RELEASE] Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Diffstat (limited to 'package/base-files/files/etc')
-rwxr-xr-xpackage/base-files/files/etc/init.d/boot1
1 files changed, 1 insertions, 0 deletions
diff --git a/package/base-files/files/etc/init.d/boot b/package/base-files/files/etc/init.d/boot
index 21aecde615..958a67599e 100755
--- a/package/base-files/files/etc/init.d/boot
+++ b/package/base-files/files/etc/init.d/boot
@@ -35,6 +35,7 @@ boot() {
touch /tmp/resolv.conf.d/resolv.conf.auto
ln -sf /tmp/resolv.conf.d/resolv.conf.auto /tmp/resolv.conf
grep -q debugfs /proc/filesystems && /bin/mount -o noatime -t debugfs debugfs /sys/kernel/debug
+ grep -q bpf /proc/filesystems && /bin/mount -o nosuid,nodev,noexec,noatime,mode=0700 -t bpf bpffs /sys/fs/bpf
[ "$FAILSAFE" = "true" ] && touch /tmp/.failsafe
/sbin/kmodloader