bpfloader: Increase rlimit to 64MB am: 2d8176917f am: 9b426494c3
am: b5bd00db62
Change-Id: Ibf9e557b3200c466c32e6ee20ca925bcda6c96ab
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