summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Fernandes <joelaf@google.com>2019-06-13 13:58:10 -0400
committerMaciej Zenczykowski <maze@google.com>2019-06-13 20:58:18 +0000
commit3a7c45efcae409d3e69a90bf116954042f84b977 (patch)
treeb2bc5e1ee0c03ad028ac3ccfd1917416181f61d9
parent5fe026a927b26d63fd8227d67a925b5541c5fb79 (diff)
downloadplatform_system_bpf-3a7c45efcae409d3e69a90bf116954042f84b977.tar.gz
platform_system_bpf-3a7c45efcae409d3e69a90bf116954042f84b977.tar.bz2
platform_system_bpf-3a7c45efcae409d3e69a90bf116954042f84b977.zip
bpfloader: Increase rlimit to 64MB
The rlimit was recently set to 8MB for bpfloader in Change Id Ib97d1d304f4ea9a6215afed76e1c1e28f1415221 This could be causing intermittent failures to create maps, let us increase it to 64MB for bpfloader. Bug: 134558982 Change-Id: Iabb2e6c7d9ea3843ae28f2c465756e5aacdf1904 Merged-In: Iabb2e6c7d9ea3843ae28f2c465756e5aacdf1904 Signed-off-by: Joel Fernandes <joelaf@google.com>
-rw-r--r--bpfloader/bpfloader.rc7
1 files changed, 5 insertions, 2 deletions
diff --git a/bpfloader/bpfloader.rc b/bpfloader/bpfloader.rc
index 7ac145d..31747fb 100644
--- a/bpfloader/bpfloader.rc
+++ b/bpfloader/bpfloader.rc
@@ -1,6 +1,9 @@
service bpfloader /system/bin/bpfloader
class main
capabilities SYS_ADMIN
- # Set RLIMIT_MEMLOCK to 8MB for bpfloader
- rlimit memlock 8388608 8388608
+ # Set RLIMIT_MEMLOCK to 64MB for bpfloader
+ # Actually only 8MB is needed, but since bpfloader runs as root, it shares
+ # the global rlimit. Once bpfloader is running as its own user in the
+ # future, it will have dedicated rlimit to itself and this can be 8MB.
+ rlimit memlock 67108864 67108864
oneshot