diff options
author | Joel Fernandes <joelaf@google.com> | 2018-11-29 11:36:13 -0800 |
---|---|---|
committer | Joel Fernandes <joelaf@google.com> | 2019-01-07 20:17:42 -0500 |
commit | 6e1341ef209de07f7b1d0c8350b274c54a3efae1 (patch) | |
tree | 11e647fa67459c729e790ddd7621f8eee77f09d5 /bpfloader | |
parent | c1dd7648b165a2c3b276b838028d896307da2468 (diff) | |
download | bpf-6e1341ef209de07f7b1d0c8350b274c54a3efae1.tar.gz |
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>
Diffstat (limited to 'bpfloader')
-rw-r--r-- | bpfloader/Android.bp | 2 | ||||
-rw-r--r-- | bpfloader/bpfloader.rc | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/bpfloader/Android.bp b/bpfloader/Android.bp index 22b6d73..81cdbe1 100644 --- a/bpfloader/Android.bp +++ b/bpfloader/Android.bp @@ -43,6 +43,8 @@ cc_binary { "BpfLoader.cpp", ], + init_rc: ["bpfloader.rc"], + required: [ "netd.o", // Uncomment once security related patches ready diff --git a/bpfloader/bpfloader.rc b/bpfloader/bpfloader.rc new file mode 100644 index 0000000..eb8bd25 --- /dev/null +++ b/bpfloader/bpfloader.rc @@ -0,0 +1,4 @@ +service bpfloader /system/bin/bpfloader + class main + capabilities SYS_ADMIN + oneshot |