bpfloader: start netbpfload after bpfloader am: c76a0dca67
Original change: https://android-review.googlesource.com/c/platform/system/bpf/+/2780568 Change-Id: I1638b02e135995d08b9fcd158f2d9b5d9aeedc06 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
2fd19d3f6f
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