diff options
author | Adam Shih <adamshih@google.com> | 2021-07-05 09:22:16 +0800 |
---|---|---|
committer | Adam Shih <adamshih@google.com> | 2021-07-12 09:28:48 +0800 |
commit | 46ca81b01aaa83efb529a2a32cb0a96488359ce9 (patch) | |
tree | fac6f75dfae18d28c2550aa1bb009685a684a7bb /wifi_ext | |
parent | cfda9b3490caaec0cc34698f1e46951f720a684a (diff) | |
download | pixel-sepolicy-46ca81b01aaa83efb529a2a32cb0a96488359ce9.tar.gz |
sync codebase
Bug: 162370942
Test: build pass
Change-Id: I73af3d6fa79a2dbf70f855274383cbf3d2af1745
Merged-In: I68126a1e1ae6193c85f6e0d9baf92a83023f436f
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 |