blob: 31747fb7b69e3c07f32642de4a5016da12dd59a0 [file] [log] [blame]
Joel Fernandes6e1341e2018-11-29 11:36:13 -08001service bpfloader /system/bin/bpfloader
2 class main
Maciej Żenczykowski3c057e62020-01-27 15:32:45 +00003 capabilities SYS_ADMIN
4 # Set RLIMIT_MEMLOCK to 64MB for bpfloader
5 # Actually only 8MB is needed, but since bpfloader runs as root, it shares
6 # the global rlimit. Once bpfloader is running as its own user in the
7 # future, it will have dedicated rlimit to itself and this can be 8MB.
8 rlimit memlock 67108864 67108864
Joel Fernandes6e1341e2018-11-29 11:36:13 -08009 oneshot