1# Copyright (c) 2025 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 test_server perftest:binder { call transfer }; 16 17 allow test_server dev_ucollection:chr_file { ioctl read open write }; 18 allowxperm test_server dev_ucollection:chr_file ioctl { 0x1 0x2 0x4 }; 19 allow test_server normal_hap:file { getattr read open }; 20 allow test_server debug_hap:file { getattr read open }; 21 allow test_server system_basic_hap:file { getattr read open }; 22 allow test_server system_core_hap:file { getattr read open }; 23 allow test_server normal_hap:dir { getattr search }; 24 allow test_server debug_hap:dir { getattr search }; 25 allow test_server system_basic_hap:dir { getattr search }; 26 allow test_server system_core_hap:dir { getattr search }; 27 allow test_server test_server:capability { sys_ptrace }; 28 allow test_server proc_stat_file:file { getattr open read }; 29 30 allow test_server sysfs_devices_system_cpu:file { read open getattr }; 31') 32