Joel Fernandes | 6e1341e | 2018-11-29 11:36:13 -0800 | [diff] [blame] | 1 | service bpfloader /system/bin/bpfloader |
| 2 | class main |
| 3 | capabilities SYS_ADMIN |
Joel Fernandes | 2d81769 | 2019-06-13 13:58:10 -0400 | [diff] [blame^] | 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 |