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 foundation data_app_file:dir { search }; 15allow foundation data_service_el1_file:dir { add_name search write }; 16allow foundation data_service_el1_file:file { create getattr ioctl read write open }; 17allow foundation data_service_file:dir { search }; 18allow foundation dev_unix_socket:dir { search }; 19allow foundation dev_unix_socket:sock_file { write }; 20allow foundation distributeddata:binder { call }; 21allow foundation foundation:unix_dgram_socket { getopt setopt }; 22allow foundation hdf_devmgr:binder { call transfer }; 23allow foundation multimodalinput:unix_stream_socket { read }; 24allow foundation power_host:binder { call }; 25allow foundation render_service:binder { call }; 26allow foundation samgr:binder { call transfer }; 27allow foundation sa_time_service:samgr_class { get }; 28allow foundation screenlock_server:binder { call }; 29allow foundation sys_file:file { ioctl open write }; 30allow foundation system_core_hap:process { sigkill }; 31allowxperm foundation data_service_el1_file:file ioctl { 0x5413 }; 32allowxperm foundation sys_file:file ioctl { 0x5413 }; 33 34