Merge "Change memlock rlimit to support eBPF feature"
am: b7d831e198
Change-Id: Ia413d9e5ca6059821956cc64de9e1ab0d925fb71
diff --git a/init.common.rc b/init.common.rc
index cb8abb7..705a66e 100644
--- a/init.common.rc
+++ b/init.common.rc
@@ -31,6 +31,10 @@
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