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 dhardware dinput:binder { call transfer }; 15 16allow dhardware sa_distributed_hardware_input_source_service:samgr_class { get }; 17 18allow dhardware sa_distributed_hardware_input_sink_service:samgr_class { get }; 19 20allow dhardware dev_input_file:dir { open read setattr getattr watch search }; 21 22allow dhardware dev_console_file:chr_file { open read write getattr setattr }; 23 24allow dhardware dev_input_file:chr_file { open read write getattr setattr }; 25 26allow dhardware dev_file:dir { getattr setattr }; 27 28allow dhardware resource_schedule_service:binder { call }; 29 30allow dhardware sa_resource_schedule:samgr_class { get }; 31 32allow dhardware musl_param:file { open read map }; 33 34allow dhardware vendor_etc_file:file { getattr }; 35 36allow dhardware sa_audio_policy_service:samgr_class { get }; 37 38allow dhardware arkcompiler_param:file { read map open }; 39 40allow dhardware ark_writeable_param:file { read map open }; 41 42allow dhardware dev_input_file:chr_file { ioctl }; 43allowxperm dhardware dev_input_file:chr_file ioctl { 0x450a 0x456f 0x4577 0x4501 0x4502 0x4503 0x4506 0x4507 0x4508 0x4509 0x4518 0x4519 0x451b 0x4520 0x4521 0x4522 0x4523 0x4524 0x4525 0x4531 0x4532 0x4535 0x4540 0x4541 0x4558 0x4570 0x4571 0x4574 0x4575 0x4576 0x4578 0x4579 0x457a 0x45a0 0x455a 0x455b 0x4560}; 44