From 60f4a34544447bfa36442e49679c79420028a469 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20=C5=BBenczykowski?= Date: Fri, 6 Jan 2023 10:07:02 +0000 Subject: [PATCH] refactor: get_prop(bpfdomain, bpf_progs_loaded_prop) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Based on: cs/p:aosp-master -file:prebuilts/ get_prop.*bpf_progs_loaded_prop Test: TreeHugger Signed-off-by: Maciej Żenczykowski Change-Id: If07026b1ea5753a82401a62349c494b4cbf699b6 --- private/bpfdomain.te | 4 ++++ private/gpuservice.te | 3 --- private/netd.te | 1 - 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/private/bpfdomain.te b/private/bpfdomain.te index ada65aeac..7c8f5c075 100644 --- a/private/bpfdomain.te +++ b/private/bpfdomain.te @@ -19,3 +19,7 @@ allow bpfdomain fs_bpf:dir search; # so let's allow all bpffs_type's instead, # this will keep things working even if this is fixed. allow bpfdomain bpffs_type:lnk_file read; + +# Needed for //frameworks/libs/net: +# common/native/bpf_headers/include/bpf/WaitForProgsLoaded.h +get_prop(bpfdomain, bpf_progs_loaded_prop) diff --git a/private/gpuservice.te b/private/gpuservice.te index 76a237054..8388e8997 100644 --- a/private/gpuservice.te +++ b/private/gpuservice.te @@ -59,9 +59,6 @@ allow gpuservice fs_bpf:file { read write }; # Needed for enabling bpf programs and accessing bpf maps (read-only and read/write). allow gpuservice bpfloader:bpf { map_read map_write prog_run }; -# Needed for getting a prop to ensure bpf programs loaded. -get_prop(gpuservice, bpf_progs_loaded_prop) - add_service(gpuservice, gpu_service) # Only uncomment below line when in development diff --git a/private/netd.te b/private/netd.te index 4aa288b33..ae43e47ff 100644 --- a/private/netd.te +++ b/private/netd.te @@ -23,7 +23,6 @@ set_prop(netd, ctl_mdnsd_prop) set_prop(netd, netd_stable_secret_prop) get_prop(netd, adbd_config_prop) -get_prop(netd, bpf_progs_loaded_prop) get_prop(netd, hwservicemanager_prop) get_prop(netd, device_config_netd_native_prop)