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