From 0014655b19c734fc966106cf100b05c4fe6d0adf Mon Sep 17 00:00:00 2001 From: baozewei Date: Tue, 2 Sep 2025 16:26:44 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E8=83=B6=E5=9B=8A?= =?UTF-8?q?=E9=80=82=E9=85=8Dpc=E6=A8=A1=E5=BC=8F=20Signed-off-by:baozewei?= =?UTF-8?q?@huawei.com?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: baozewei --- .../print/print_service/system/distributeddata.te | 14 ++++++++++++++ .../print/print_service/system/print_service.te | 2 ++ 2 files changed, 16 insertions(+) create mode 100644 sepolicy/ohos_policy/print/print_service/system/distributeddata.te diff --git a/sepolicy/ohos_policy/print/print_service/system/distributeddata.te b/sepolicy/ohos_policy/print/print_service/system/distributeddata.te new file mode 100644 index 000000000..eab968ea4 --- /dev/null +++ b/sepolicy/ohos_policy/print/print_service/system/distributeddata.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. + +allow distributeddata print_service:binder { transfer }; diff --git a/sepolicy/ohos_policy/print/print_service/system/print_service.te b/sepolicy/ohos_policy/print/print_service/system/print_service.te index 16257aa99..23bd721f2 100644 --- a/sepolicy/ohos_policy/print/print_service/system/print_service.te +++ b/sepolicy/ohos_policy/print/print_service/system/print_service.te @@ -101,3 +101,5 @@ allow print_service tty_device:chr_file { read write }; allow print_service print_driver_exec:dir { search write add_name }; allow print_service print_driver_exec:lnk_file { create getattr }; allow print_service sa_foundation_appms:samgr_class { get }; +allow print_service sa_distributeddata_service:samgr_class { get }; +allow print_service distributeddata:binder { call }; -- Gitee From b6011d714a01e0674979e292327057d5640f37c5 Mon Sep 17 00:00:00 2001 From: baozewei Date: Tue, 2 Sep 2025 16:55:59 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E8=83=B6=E5=9B=8A?= =?UTF-8?q?=E9=80=82=E9=85=8Dpc=E6=A8=A1=E5=BC=8F=20Signed-off-by:baozewei?= =?UTF-8?q?@huawei.com?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: baozewei --- .../print_service/system/distributeddata.te | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/sepolicy/ohos_policy/print/print_service/system/distributeddata.te b/sepolicy/ohos_policy/print/print_service/system/distributeddata.te index eab968ea4..8658b13fe 100644 --- a/sepolicy/ohos_policy/print/print_service/system/distributeddata.te +++ b/sepolicy/ohos_policy/print/print_service/system/distributeddata.te @@ -1,14 +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. - -allow distributeddata print_service:binder { transfer }; +# 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. + +allow distributeddata print_service:binder { transfer }; -- Gitee