修改bytrace为hitrace后添加selinux规则

Signed-off-by: wenlong_12 <wenlong12@huawei.com>
Change-Id: I6a1a1f4f5947512aaa60acebe83930bf674aea9d
This commit is contained in:
wenlong_12 2023-06-27 10:24:24 +08:00
parent 1fdaac6e87
commit 35544264d5

View File

@ -0,0 +1,55 @@
# Copyright (c) 2022 Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License
allow hitrace hiprofiler_plugins:fifo_file read;
allow hitrace hiprofiler_plugins:unix_stream_socket { read write };
allow hitrace hiprofilerd:fd use;
allow hitrace hiprofiler_plugins:fd use;
allow hitrace hiprofiler_plugins:fifo_file write;
allow hitrace domain:file { map open read write };
allow hitrace data_local_tmp:dir read;
allow hitrace const_param:file { read map open };
allow hitrace hw_sc_build_os_param:file map;
allow hitrace init_param:file { map open read };
allow hitrace init_svc_param:file { map open read };
allow hitrace ohos_boot_param:file open;
allow hitrace tmpfs:file { read write };
allow hitrace const_postinstall_fstab_param:file { read map open };
allow hitrace const_postinstall_param:file { read map open };
allow hitrace bootevent_param:file { read map open };
allow hitrace build_version_param:file { read map open };
allow hitrace const_build_param:file { read map open };
allow hitrace const_product_param:file { read map open };
allow hitrace debug_param:file { read map open };
allow hitrace hilog_param:file { read map open };
allow hitrace persist_param:file { read map open };
allow hitrace persist_sys_param:file { read map open };
allow hitrace security_param:file { read map open };
allow hitrace startup_param:file { read map open };
allow hitrace bootevent_samgr_param:file { read map open };
allow hitrace const_display_brightness_param:file { read map open };
allow hitrace default_param:file { read map open };
allow hitrace distributedsche_param:file { read map open };
allow hitrace input_pointer_device_param:file { read map open };
allow hitrace hiprofiler_plugins:fifo_file ioctl;
allow hitrace const_allow_mock_param:file { read map open };
allow hitrace const_allow_param:file { read map open };