Merge "Change memlock rlimit to support eBPF feature"
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