1# Copyright (c) 2024 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 14debug_only(` 15 allow dumpcatcher debug_param:file { map open read }; 16 allow dumpcatcher dev_kmsg_file:chr_file { write }; 17 allow dumpcatcher dev_ptmx:chr_file { read write }; 18 allow dumpcatcher dev_unix_socket:dir { search }; 19 allow dumpcatcher devpts:chr_file { read write }; 20 allow dumpcatcher faultloggerd:fifo_file { read }; 21 allow dumpcatcher faultloggerd_socket_sdkdump:sock_file { write }; 22 allow dumpcatcher su:dir { search read open }; 23 allow dumpcatcher su:fd { use }; 24 allow dumpcatcher su:file { getattr open read }; 25 allow dumpcatcher su:fifo_file { write }; 26 allow dumpcatcher su:unix_stream_socket { read write }; 27 allow dumpcatcher tty_device:chr_file { read write }; 28 allowxperm dumpcatcher dev_bbox:chr_file ioctl 0xab09; 29 allowxperm dumpcatcher tty_device:chr_file ioctl 0x5413; 30') 31