1# Copyright (c) 2022 Huawei Device Co., Ltd. 2# Licensed under the Apache License, Version 2.0 (the "License"); 3# you may not use this file except in compliance with the License. 4# You may obtain a copy of the License at 5# 6# http://www.apache.org/licenses/LICENSE-2.0 7# 8# Unless required by applicable law or agreed to in writing, software 9# distributed under the License is distributed on an "AS IS" BASIS, 10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11# See the License for the specific language governing permissions and 12# limitations under the License. 13 14allow wifi_manager_service accesstoken_service:binder { call }; 15allow wifi_manager_service data_service_el1_file:dir { add_name remove_name search write create }; 16allow wifi_manager_service data_service_el1_file:file { create getattr ioctl lock open read setattr unlink write }; 17allow wifi_manager_service data_file:dir { search }; 18allow wifi_manager_service data_service_el1_file:sock_file { write }; 19allow wifi_manager_service accessibility_param:file { read }; 20allow wifi_manager_service dev_unix_socket:dir { search }; 21allow wifi_manager_service foundation:binder { call transfer }; 22allow wifi_manager_service netmanager:binder { call transfer }; 23allow wifi_manager_service node:udp_socket { node_bind }; 24allow wifi_manager_service port:udp_socket { name_bind }; 25allow wifi_manager_service sa_accesstoken_manager_service:samgr_class { get }; 26allow wifi_manager_service netsysnative:binder { call }; 27allow wifi_manager_service sa_foundation_cesfwk_service:samgr_class { get }; 28allow wifi_manager_service sa_net_conn_manager:samgr_class { get }; 29allow wifi_manager_service sa_wifi_device_ability:samgr_class { add }; 30allow wifi_manager_service sa_wifi_hotspot_ability:samgr_class { add }; 31allow wifi_manager_service sa_wifi_p2p_ability:samgr_class { add }; 32allow wifi_manager_service sa_wifi_scan_ability:samgr_class { add }; 33allow wifi_manager_service softbus_server:binder { call }; 34allow wifi_manager_service system_bin_file:dir { search }; 35allow wifi_manager_service system_bin_file:file { execute execute_no_trans map read open }; 36allow wifi_manager_service wifi_hal_service:unix_stream_socket { connectto }; 37allow wifi_manager_service sa_netsys_native_manager:samgr_class { get }; 38allow wifi_manager_service wifi_manager_service:netlink_route_socket { create nlmsg_read read write }; 39allow wifi_manager_service wifi_manager_service:packet_socket { bind create read write }; 40allow wifi_manager_service wifi_manager_service:udp_socket { bind create ioctl setopt getopt read write }; 41allow wifi_manager_service wifi_manager_service:unix_dgram_socket { ioctl }; 42allow wifi_manager_service data_service_file:dir { search }; 43allow wifi_manager_service normal_hap:binder { call transfer }; 44allow wifi_manager_service system_core_hap:binder { call transfer }; 45allow wifi_manager_service system_basic_hap:binder { call transfer }; 46allow wifi_manager_service sa_foundation_appms:samgr_class { get }; 47allow wifi_manager_service kernel:system { module_request }; 48allow wifi_manager_service musl_param:file { read }; 49allow wifi_manager_service sa_huks_service:samgr_class { get }; 50allow wifi_manager_service sa_cert_manager_service:samgr_class { get }; 51allow wifi_manager_service cert_manager_service:binder { call }; 52allowxperm wifi_manager_service data_service_el1_file:file ioctl { 0x5413 }; 53allowxperm wifi_manager_service wifi_manager_service:udp_socket ioctl { 0x890B 0x8913 0x8915 0x8916 0x891b 0x891c 0x8927 0x8933 }; 54allowxperm wifi_manager_service wifi_manager_service:unix_dgram_socket ioctl { 0x8910 }; 55