From 1288a3fcf87fa5667940097380de2721f6a0c5da Mon Sep 17 00:00:00 2001 From: byndyx Date: Sat, 30 Aug 2025 16:46:07 +0800 Subject: [PATCH] mechbody Signed-off-by: byndyx --- .../system/bluetooth_service.te | 14 ++++++++++++++ .../mechbody_controller/system/mechbody.te | 18 ++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 sepolicy/ohos_policy/distributedhardware/mechbody_controller/system/bluetooth_service.te diff --git a/sepolicy/ohos_policy/distributedhardware/mechbody_controller/system/bluetooth_service.te b/sepolicy/ohos_policy/distributedhardware/mechbody_controller/system/bluetooth_service.te new file mode 100644 index 000000000..f5738a6f0 --- /dev/null +++ b/sepolicy/ohos_policy/distributedhardware/mechbody_controller/system/bluetooth_service.te @@ -0,0 +1,14 @@ +# Copyright (c) 2025 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. + +binder_call(bluetooth_service, mechbody); diff --git a/sepolicy/ohos_policy/distributedhardware/mechbody_controller/system/mechbody.te b/sepolicy/ohos_policy/distributedhardware/mechbody_controller/system/mechbody.te index e01001704..e8d83832f 100644 --- a/sepolicy/ohos_policy/distributedhardware/mechbody_controller/system/mechbody.te +++ b/sepolicy/ohos_policy/distributedhardware/mechbody_controller/system/mechbody.te @@ -11,6 +11,24 @@ # See the License for the specific language governing permissions and # limitations under the License. +binder_call(mechbody, bluetooth_service); + +binder_call(mechbody, multimodalinput); + +binder_call(mechbody, system_basic_hap_attr); + +binder_call(mechbody, normal_hap_attr); + +binder_call(mechbody, accountmgr); + +binder_call(mechbody, camera_service); + +binder_call(mechbody, foundation); + +binder_call(mechbody, resource_schedule_service); + +binder_call(mechbody, sensors); + allow mechbody chip_prod_file:dir { search }; allow mechbody mechbody:unix_dgram_socket { getopt setopt }; -- Gitee