1# Copyright (c) 2022-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 14developer_only(` 15 allow bytrace hiprofiler_plugins:fifo_file read; 16 allow bytrace hiprofiler_plugins:unix_stream_socket { read write }; 17 allow bytrace hiprofilerd:fd use; 18 19 allow bytrace hiprofiler_plugins:fd use; 20 allow bytrace hiprofiler_plugins:fifo_file write; 21 22 allow bytrace domain:file { map open read write }; 23 24 allow bytrace data_local_tmp:dir read; 25 26 allow bytrace const_param:file { read map open }; 27 allow bytrace hw_sc_build_os_param:file map; 28 allow bytrace init_param:file { map open read }; 29 allow bytrace init_svc_param:file { map open read }; 30 allow bytrace ohos_boot_param:file open; 31 allow bytrace tmpfs:file { read write }; 32 33 allow bytrace const_postinstall_fstab_param:file { read map open }; 34 allow bytrace const_postinstall_param:file { read map open }; 35 36 allow bytrace bootevent_param:file { read map open }; 37 allow bytrace build_version_param:file { read map open }; 38 allow bytrace const_build_param:file { read map open }; 39 allow bytrace const_product_param:file { read map open }; 40 allow bytrace debug_param:file { read map open }; 41 allow bytrace hilog_param:file { read map open }; 42 allow bytrace persist_param:file { read map open }; 43 allow bytrace persist_sys_param:file { read map open }; 44 allow bytrace security_param:file { read map open }; 45 allow bytrace startup_param:file { read map open }; 46 47 allow bytrace bootevent_samgr_param:file { read map open }; 48 allow bytrace const_display_brightness_param:file { read map open }; 49 allow bytrace default_param:file { read map open }; 50 allow bytrace distributedsche_param:file { read map open }; 51 allow bytrace input_pointer_device_param:file { read map open }; 52 53 allow bytrace hiprofiler_plugins:fifo_file ioctl; 54 55 allow bytrace const_allow_mock_param:file { read map open }; 56 allow bytrace const_allow_param:file { read map open }; 57 58 allow bytrace sa_hiview_service:samgr_class get; 59 allow bytrace samgr:binder { call }; 60 allow bytrace dev_console_file:chr_file { read write }; 61 allow bytrace hiview:binder { call transfer }; 62') 63