common: Allow macloader to set wifi props
authorAndreas Schneider <asn@cryptomilk.org>
Tue, 1 Jun 2021 06:37:59 +0000 (08:37 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Tue, 1 Jun 2021 06:41:24 +0000 (08:41 +0200)
Change-Id: I88a98165e136f737448273f46ccc5d6a29d7736b

common/vendor/macloader.te
common/vendor/property.te
common/vendor/property_contexts

index f82dff66903310cb6bb623ec0dd666800cc74999..d1f3d0c8d4bfec4368c10c2561fe07ea0d9ae029 100644 (file)
@@ -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;
index 04c4089607ec1aa2126b635ac625e2e02f8da98d..98639bd53b307622c93e545deb52b0b299d89b8b 100644 (file)
@@ -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;
index f3a50437b3d4897fa3946c287853f4b535373007..1e179c54d0e99c53fd05ab42fe42fa8d06591e82 100644 (file)
@@ -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