From: Andreas Schneider Date: Tue, 1 Jun 2021 06:37:59 +0000 (+0200) Subject: common: Allow macloader to set wifi props X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=47f6c5047889bfc80cba847ad3f14fab20d0c391;p=GitHub%2FLineageOS%2Fandroid_device_samsung_slsi_sepolicy.git common: Allow macloader to set wifi props Change-Id: I88a98165e136f737448273f46ccc5d6a29d7736b --- 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