summaryrefslogtreecommitdiff
path: root/init.common.rc
diff options
context:
space:
mode:
authorYongqin Liu <yongqin.liu@linaro.org>2020-03-20 13:44:54 +0800
committerYongqin Liu <yongqin.liu@linaro.org>2020-03-20 13:44:54 +0800
commitab5d0cc63573e6d83d368c3d86aadcf45cdfbf7f (patch)
tree96c0fec6e25b6152255922b86c4e3f2595cf07a6 /init.common.rc
parentc8a4acf7d45d080c1e618f81dc274df7918c277b (diff)
Increase RLIMIT_MEMLOCK to 64MB
Increase the limit to support the bpf maps and programs otherwise the bfp tests will fail with the "Operation not permitted" error, which is returned by the check of bpf_charge_memlock in kernel/bpf/syscall.c Test: ./android-vts/tools/vts-tradefed run vts-kernel -m VtsKernelNetTest Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org> Change-Id: I5ef7e335a12efb8ae830f07f445e256d4de42606
Diffstat (limited to 'init.common.rc')
-rw-r--r--init.common.rc4
1 files changed, 4 insertions, 0 deletions
diff --git a/init.common.rc b/init.common.rc
index 8b8f952..988a5e1 100644
--- a/init.common.rc
+++ b/init.common.rc
@@ -5,6 +5,10 @@ on fs
mount_all /vendor/etc/init/fstab.${ro.hardware}
swapon_all /vendor/etc/init/fstab.${ro.hardware}
+on post-fs
+ # set RLIMIT_MEMLOCK to 64MB
+ setrlimit 8 67108864 67108864
+
on init
# For legacy support
# See storage config details at http://source.android.com/tech/storage/