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
14allow dinput dhardware:binder { call transfer };
15
16allow dinput dinput:unix_dgram_socket { getopt setopt };
17
18allow dinput dev_unix_socket:dir { search };
19
20allow dinput dev_uinput:chr_file { open write ioctl };
21
22allow dinput sa_param_watcher:samgr_class { get };
23
24allow dinput sa_foundation_dms:samgr_class { get };
25
26allow dinput hilog_param:file { open read map };
27
28allow dinput proc_file:file { open read };
29
30allow dinput softbus_server:binder { call transfer };
31
32allow dinput softbus_server:fd { use };
33
34allow dinput softbus_server:tcp_socket { read write };
35
36allow dinput softbus_server:tcp_socket { setopt shutdown };
37
38allow dinput multimodalinput:binder { call };
39
40allow dinput sa_softbus_service:samgr_class { get };
41
42allow dinput sa_distributed_hardware_input_sink_service:samgr_class { add get get_remote };
43
44allow dinput sa_distributed_hardware_input_source_service:samgr_class { add get get_remote };
45
46allow dinput sa_dhardware_service:samgr_class { get };
47
48allow dinput sa_accesstoken_manager_service:samgr_class { get };
49
50allow dinput tracefs:dir { search };
51
52allow dinput accesstoken_service:binder { call };
53
54allow dinput musl_param:file { open read map };
55
56allow dinput foundation:binder { call };
57
58allow dinput system_bin_file:dir { search };
59
60allow dinput dev_input_file:dir { open read watch search };
61
62allow dinput debug_param:file { open read map };
63
64allow foundation data_app_el1_file:file { map };
65
66allow dinput param_watcher:binder { call transfer };
67
68allow dinput dev_input_file:chr_file { open read write setattr getattr };
69
70allow dinput dev_input_file:chr_file { ioctl };
71allowxperm dinput dev_input_file:chr_file ioctl { 0x4501 0x4502 0x4503 0x4506 0x4507 0x4508 0x4509 0x450a 0x4518 0x4519 0x451b 0x4520 0x4521 0x4522 0x4523 0x4524 0x4525 0x4531 0x4532 0x4535 0x4540 0x4541 0x4558 0x4570 0x4571 0x4574 0x4575 0x4576 0x4577 0x4578 0x4579 0x457a 0x45a0 0x455a 0x455b 0x4560 0x4569 0x456a 0x456b 0x456f };
72
73allow dinput dev_input_file:dir { setattr getattr };
74
75allow dinput vendor_etc_file:dir { search };
76
77allow dinput vendor_etc_file:file { open read getattr };
78
79allow dinput sa_dscreen_sink_service:samgr_class { get };
80
81allow dinput sa_dscreen_source_service:samgr_class { get };
82
83allow dinput dscreen:binder { call };
84
85allow dinput vendor_bin_file:dir { search };
86
87allow dinput msdp_sa:binder { call transfer };
88
89allow dinput dev_console_file:chr_file { read write };
90
91allow dinput sysfs_devices_system_cpu:file { open read getattr };
92
93allow dinput dev_file:dir { getattr };
94
95allow dinput tracefs_trace_marker_file:file { open write };
96
97allow dinput sa_foundation_wms:samgr_class { get };
98
99allow dinput persist_sys_param:file { read open map };
100
101allow dinput arkcompiler_param:file { read open map };
102
103allow dinput ark_writeable_param:file { read open map };
104
105allow dinput sys_prod_file:dir { search };
106
107allow dinput chip_prod_file:dir { search };
108
109allow foundation dinput:binder { transfer };
110
111