1# Copyright (c) 2023-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
14allow hisysevent hdcd:fd { use };
15allow hisysevent hdcd:fifo_file { read write };
16allow hisysevent hdcd:unix_stream_socket { read write };
17allow hdcd hisysevent:process { signal };
18
19allow hisysevent hiview:fd { use };
20allow hisysevent hiview:binder { call transfer };
21
22allow hisysevent debug_param:file { read open map };
23allow hisysevent hilog_param:file { read open map };
24allow hisysevent dev_unix_socket:dir { search };
25allow hisysevent dev_console_file:chr_file { read write };
26
27allow hisysevent samgr:binder { call };
28allow hisysevent sa_sys_event_service:samgr_class get;
29allow samgr hisysevent:dir { search };
30allow samgr hisysevent:file { read open };
31allow samgr hisysevent:process { getattr };
32allow samgr hisysevent:binder { call transfer };
33
34allow hisysevent tty_device:chr_file { read write };
35allow hisysevent devpts:chr_file { read write ioctl };
36allowxperm hisysevent devpts:chr_file ioctl { 0x5413 };
37
38allow hisysevent hiprofiler_plugins:fd { use };
39allow hisysevent hiprofiler_plugins:fifo_file { ioctl write };
40
41allow hisysevent data_local_tmp:file { write ioctl };
42allowxperm hisysevent data_local_tmp:file ioctl { 0x5413 };
43
44developer_only(`
45allow hisysevent sh:fd { use };
46allow hisysevent sh:fifo_file { write ioctl };
47allowxperm hisysevent sh:fifo_file ioctl { 0x5413 };
48')
49
50