1# Copyright (c) 2022-2023 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 14type hiview, sadomain, domain; 15 16type hiview_exec, exec_attr, file_attr, system_file_attr; 17type usage_report_exec, exec_attr, file_attr, system_file_attr; 18type hiview_file, file_attr, data_file_attr; 19type hisysevent_socket, dev_attr, file_attr; 20type dev_ucollection, dev_attr, file_attr; 21type dev_sysevent, dev_attr; 22 23attribute vendor_violator_data_log_file_createwrite; 24attribute vendor_violator_data_log_dir_createwrite; 25attribute public_violator_data_log_file_createwrite; 26attribute public_violator_data_log_dir_createwrite; 27 28neverallow { domain -vendor_violator_data_log_file_createwrite -public_violator_data_log_file_createwrite -rgm_violator_data_log_file_createwrite -hiview -render_service -foundation -telephony_sa -sh -hidumper_service -hitrace -power_host -usb_host -camera_host -wifi_hal_service -hiperf -bytrace -download_server -faultloggerd -hidumper -netmanager -softbus_server -bluetooth_service -sadomain -hap_domain -multimodalinput -resource_schedule_service -huks_service -init -kernel updater_only(`-hiview_light') } data_log:file {create write}; 29neverallow { domain -vendor_violator_data_log_dir_createwrite -public_violator_data_log_dir_createwrite -rgm_violator_data_log_dir_createwrite -hiview -render_service -foundation -telephony_sa -sh -hidumper_service -hitrace -power_host -usb_host -camera_host -wifi_hal_service -hiperf -bytrace -download_server -faultloggerd -hidumper -netmanager -softbus_server -bluetooth_service -sadomain -hap_domain -multimodalinput -resource_schedule_service -huks_service -init -kernel updater_only(`-hiview_light') } data_log:dir {create write}; 30