bpfloader: start netbpfload after bpfloader
Test: TreeHugger Signed-off-by: Maciej Żenczykowski <maze@google.com> Change-Id: Ib052eddc1cc3585c108b7715af99bab63d012021
This commit is contained in:
parent
50fdc95894
commit
c76a0dca67
2 changed files with 14 additions and 1 deletions
|
@ -51,7 +51,8 @@ cc_binary {
|
|||
init_rc: ["bpfloader.rc"],
|
||||
|
||||
required: [
|
||||
"timeInState.o"
|
||||
"netbpfload",
|
||||
"timeInState.o",
|
||||
],
|
||||
|
||||
product_variables: {
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
#
|
||||
on load_bpf_programs
|
||||
exec_start bpfloader
|
||||
exec_start netbpfload
|
||||
|
||||
service bpfloader /system/bin/bpfloader
|
||||
capabilities CHOWN SYS_ADMIN
|
||||
|
@ -82,3 +83,14 @@ service bpfloader /system/bin/bpfloader
|
|||
reboot_on_failure reboot,bpfloader-failed
|
||||
# we're not really updatable, but want to be able to load bpf programs shipped in apexes
|
||||
updatable
|
||||
|
||||
# Note: comments for 'bpfloader' from up above also apply here.
|
||||
# Use: adb logcat -s 'NetBpfLoad:*' 'NetBpfLoader:*'
|
||||
service netbpfload /system/bin/netbpfload
|
||||
capabilities CHOWN SYS_ADMIN NET_ADMIN
|
||||
group root network_stack net_admin net_bw_acct net_bw_stats net_raw system
|
||||
user root
|
||||
rlimit memlock 1073741824 1073741824
|
||||
oneshot
|
||||
reboot_on_failure reboot,netbpfload-failed
|
||||
updatable
|
||||
|
|
Loading…
Reference in a new issue