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 14################## 15## Type define: ## 16################## 17type hilogd, sadomain, domain; 18 19type hilogd_exec, exec_attr, file_attr, system_file_attr; 20type hilog_exec, exec_attr, file_attr, system_file_attr; 21type hilog_control_socket, dev_attr, file_attr; 22type hilog_input_socket, dev_attr, file_attr; 23type hilog_output_socket, dev_attr, file_attr; 24type data_hilogd_file, file_attr, data_file_attr; 25type hilog_whitelist_file, file_attr, data_file_attr; 26init_daemon_domain(hilogd); 27neverallow { domain debug_only(`-su') -hilogd -init -sh -aa -snapshot_display -hiprofiler_plugins -hiview -hap_domain } hilog_output_socket:sock_file { write }; 28