From 47f6c5047889bfc80cba847ad3f14fab20d0c391 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Tue, 1 Jun 2021 08:37:59 +0200 Subject: [PATCH] common: Allow macloader to set wifi props Change-Id: I88a98165e136f737448273f46ccc5d6a29d7736b --- common/vendor/macloader.te | 2 ++ common/vendor/property.te | 1 + common/vendor/property_contexts | 4 ++++ 3 files changed, 7 insertions(+) diff --git a/common/vendor/macloader.te b/common/vendor/macloader.te index f82dff6..d1f3d0c 100644 --- a/common/vendor/macloader.te +++ b/common/vendor/macloader.te @@ -6,6 +6,8 @@ type macloader_exec, exec_type, vendor_file_type, file_type; # macloader is started by init, type transit from init domain to macloader domain init_daemon_domain(macloader) +set_prop(macloader, vendor_wifi_prop); + allow macloader self:capability { net_admin }; allow macloader self:udp_socket create_socket_perms; diff --git a/common/vendor/property.te b/common/vendor/property.te index 04c4089..98639bd 100644 --- a/common/vendor/property.te +++ b/common/vendor/property.te @@ -3,3 +3,4 @@ type vendor_cbd_prop, property_type; type vendor_radio_prop, property_type; type vendor_fastcharge_prop, property_type; +type vendor_wifi_prop, property_type; diff --git a/common/vendor/property_contexts b/common/vendor/property_contexts index f3a5043..1e179c5 100644 --- a/common/vendor/property_contexts +++ b/common/vendor/property_contexts @@ -9,3 +9,7 @@ ro.vendor.radio. u:object_r:vendor_radio_prop:s0 ### fastcharge persist.vendor.sec.fastchg_enabled u:object_r:vendor_fastcharge_prop:s0 + +### wifi +vendor.wifi. u:object_r:vendor_wifi_prop:s0 +ro.vendor.wifi. u:object_r:vendor_wifi_prop:s0 -- 2.20.1