bpfloader: Make it an init service

With this, bpfloader does not need to be started by netd and will load
at boot time.

Bug: 112334572
Change-Id: Iad777ed0a5bb5995dbf2fc176a220292a4c5e41f
Signed-off-by: Joel Fernandes <joelaf@google.com>
This commit is contained in:
Joel Fernandes 2018-11-29 11:36:13 -08:00
parent c1dd7648b1
commit 6e1341ef20
2 changed files with 6 additions and 0 deletions

View file

@ -43,6 +43,8 @@ cc_binary {
"BpfLoader.cpp",
],
init_rc: ["bpfloader.rc"],
required: [
"netd.o",
// Uncomment once security related patches ready

4
bpfloader/bpfloader.rc Normal file
View file

@ -0,0 +1,4 @@
service bpfloader /system/bin/bpfloader
class main
capabilities SYS_ADMIN
oneshot