Set bpfloader MEMLOCK rlimit to at least 8MB
Since bpfloader is only used to create the bpf maps and load bpf programs on android devices. It is okay to set the MEMLOCK rlimit of bpfloader to the proper size needed by bpf maps regardless of the global device values. It helps partner to adopt the bpf feature without changing the device configuration. Bug: 119279144 Bug: 129246448 Test: remove device specific rlimit and build and verify bpf maps created. Change-Id: Ib97d1d304f4ea9a6215afed76e1c1e28f1415221
This commit is contained in:
parent
e1153fd1da
commit
ee121646cf
1 changed files with 2 additions and 0 deletions
|
|
@ -1,4 +1,6 @@
|
|||
service bpfloader /system/bin/bpfloader
|
||||
class main
|
||||
capabilities SYS_ADMIN
|
||||
# Set RLIMIT_MEMLOCK to 8MB for bpfloader
|
||||
rlimit memlock 8388608 8388608
|
||||
oneshot
|
||||
|
|
|
|||
Loading…
Reference in a new issue