1# Copyright (c) 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 14debug_only(` 15allow console dev_console_file:chr_file { ioctl read write }; 16allow console lib_file:lnk_file { read }; 17allow console system_bin_file:dir { search }; 18allow console system_bin_file:file { execute execute_no_trans getattr map read open }; 19allow console system_bin_file:lnk_file { read }; 20allow console toybox_exec:file { execute execute_no_trans getattr map read open }; 21allow console toybox_exec:lnk_file { read }; 22allow console tty_device:chr_file { ioctl }; 23allowxperm console dev_console_file:chr_file ioctl { 0x5413 }; 24allowxperm console tty_device:chr_file ioctl { 0x5403 }; 25') 26