diff options
Diffstat (limited to 'wifi_ext')
-rw-r--r-- | wifi_ext/file_contexts | 3 | ||||
-rw-r--r-- | wifi_ext/hal_wifi_ext.te | 11 | ||||
-rw-r--r-- | wifi_ext/hwservice.te | 2 | ||||
-rw-r--r-- | wifi_ext/hwservice_contexts | 2 |
4 files changed, 18 insertions, 0 deletions
diff --git a/wifi_ext/file_contexts b/wifi_ext/file_contexts new file mode 100644 index 0000000..acbd266 --- /dev/null +++ b/wifi_ext/file_contexts @@ -0,0 +1,3 @@ +# Wifi +/vendor/bin/hw/vendor\.google\.wifi_ext@1\.0-service-vendor u:object_r:hal_wifi_ext_exec:s0 +/vendor/bin/hw/vendor\.google\.wifi_ext@1\.0-service-vendor-lazy u:object_r:hal_wifi_ext_exec:s0 diff --git a/wifi_ext/hal_wifi_ext.te b/wifi_ext/hal_wifi_ext.te new file mode 100644 index 0000000..7f20b42 --- /dev/null +++ b/wifi_ext/hal_wifi_ext.te @@ -0,0 +1,11 @@ +type hal_wifi_ext, domain; +hal_server_domain(hal_wifi_ext, hal_wifi) + +type hal_wifi_ext_exec, exec_type, vendor_file_type, file_type; +init_daemon_domain(hal_wifi_ext) + +# Allow to start the IWifi:wifi_ext service +add_hwservice(hal_wifi_ext, hal_wifi_ext_hwservice); + +# Allow to set up bridged interface +allowxperm hal_wifi_ext self:udp_socket ioctl { SIOCBRADDBR SIOCBRDELBR SIOCBRADDIF SIOCBRDELIF}; diff --git a/wifi_ext/hwservice.te b/wifi_ext/hwservice.te new file mode 100644 index 0000000..1fe9148 --- /dev/null +++ b/wifi_ext/hwservice.te @@ -0,0 +1,2 @@ +# wifi_ext service +type hal_wifi_ext_hwservice, hwservice_manager_type; diff --git a/wifi_ext/hwservice_contexts b/wifi_ext/hwservice_contexts new file mode 100644 index 0000000..e8de4ce --- /dev/null +++ b/wifi_ext/hwservice_contexts @@ -0,0 +1,2 @@ +# Wifi +vendor.google.wifi_ext::IWifiExt u:object_r:hal_wifi_ext_hwservice:s0 |