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:
commit
7e399c7847
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue