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 e67729d582444fdad65a639caa657a7ae07f04ef..408f0ef592b119b687e5ca9b8f7878bd8ea1f94b 100644 --- a/sepolicy/ohos_policy/print/print_service/system/print_service.te +++ b/sepolicy/ohos_policy/print/print_service/system/print_service.te @@ -68,4 +68,8 @@ allow print_service system_basic_hap:fd { use }; allow print_service system_basic_hap_data_file:file { read }; allow print_service system_core_hap:binder { call }; allow print_service sysfs_devices_system_cpu:file { open read }; +allow print_service sa_security_guard_service:samgr_class { get }; +allow print_service sa_time_service:samgr_class { get }; +allow print_service security_guard:binder { call }; +allow print_service time_service:binder { call }; diff --git a/sepolicy/ohos_policy/print/print_service/system/security_guard.te b/sepolicy/ohos_policy/print/print_service/system/security_guard.te new file mode 100644 index 0000000000000000000000000000000000000000..5a6de5dd0f0d94f45fdfa2dee89f3588fe85cb26 --- /dev/null +++ b/sepolicy/ohos_policy/print/print_service/system/security_guard.te @@ -0,0 +1,14 @@ +# Copyright (c) 2023 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 security_guard print_service:binder { transfer }; diff --git a/sepolicy/ohos_policy/print/print_service/system/time_service.te b/sepolicy/ohos_policy/print/print_service/system/time_service.te new file mode 100644 index 0000000000000000000000000000000000000000..5c6b67b9f6a9c2afed632ee7a745d6afb001d6b5 --- /dev/null +++ b/sepolicy/ohos_policy/print/print_service/system/time_service.te @@ -0,0 +1,14 @@ +# Copyright (c) 2023 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 time_service print_service :binder { transfer };