bpfloader.rc: set /proc/sys/kernel/unprivileged_bpf_disabled to 0 am: fa03239a81
am: 04a70b8dda
am: 7e399c7847
am: 6ce5b01775
Original change: https://android-review.googlesource.com/c/platform/system/bpf/+/1887534 Change-Id: Ic7d252f988f096bc07e6966b8eeeaf70f8f2822a
This commit is contained in:
commit
e083936b1f
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