summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTreehugger Robot <treehugger-gerrit@google.com>2018-09-09 01:00:56 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2018-09-09 01:00:56 +0000
commitb7d831e198d59af6f65af682f1fbb1c8f25c3dba (patch)
tree4e02893238d440f4384211ca2e61ff02d53e64d7
parenta6764b2e0dcd63745b6abd12928bdab15d48494c (diff)
parent05aa559d982df948b0bde1f56f31767bd5065230 (diff)
downloadhikey-b7d831e198d59af6f65af682f1fbb1c8f25c3dba.tar.gz
Merge "Change memlock rlimit to support eBPF feature"
-rw-r--r--init.common.rc4
1 files changed, 4 insertions, 0 deletions
diff --git a/init.common.rc b/init.common.rc
index cb8abb79..705a66eb 100644
--- a/init.common.rc
+++ b/init.common.rc
@@ -31,6 +31,10 @@ on fs
setprop ro.crypto.fuse_sdcard false
on post-fs
+
+ # set RLIMIT_MEMLOCK to 8MB
+ setrlimit 8 8388608 8388608
+
# For legacy support
# See storage config details at http://source.android.com/tech/storage/
# since /storage is mounted on post-fs in init.rc