Joel Fernandes | 6e1341e | 2018-11-29 11:36:13 -0800 | [diff] [blame] | 1 | service bpfloader /system/bin/bpfloader |
| 2 | class main |
Maciej Żenczykowski | 3c057e6 | 2020-01-27 15:32:45 +0000 | [diff] [blame^] | 3 | 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 Fernandes | 6e1341e | 2018-11-29 11:36:13 -0800 | [diff] [blame] | 9 | oneshot |