bpfloader.rc: set /proc/sys/kernel/unprivileged_bpf_disabled to 0 am: fa03239a81 am: 04a70b8dda

Original change: https://android-review.googlesource.com/c/platform/system/bpf/+/1887534

Change-Id: I44d19e15adf178d52b39235efae67050ac159d69
This commit is contained in:
Maciej Żenczykowski 2021-11-11 12:50:49 +00:00 committed by Automerger Merge Worker
commit 7e399c7847

View file

@ -15,6 +15,9 @@
# considered to have booted successfully.
#
on load_bpf_programs
# Linux 5.16-rc1 has changed the default to 2 (disabled but changeable),
# but we need 0
write /proc/sys/kernel/unprivileged_bpf_disabled 0
# Enable the eBPF JIT -- but do note that on 64-bit kernels it is likely
# already force enabled by the kernel config option BPF_JIT_ALWAYS_ON
write /proc/sys/net/core/bpf_jit_enable 1