1# Copyright (c) 2021-2022 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 14type samgr, domain; 15type samgr_exec, exec_type, file_type, system_file_type; 16 17init_daemon_domain(samgr); 18 19binder_call(samgr, appspawn); 20binder_call(samgr, foundation); 21binder_call(samgr, deviceauth_service); 22binder_call(samgr, hdf_devmgr); 23binder_call(samgr, render_service); 24binder_call(render_service, hdf_devmgr); 25 26allow samgr kernel:fd use; 27allow samgr tmpfs:chr_file { open read write getattr ioctl map }; 28 29allow samgr samgr:binder set_context_mgr; 30 31allow samgr socket_device:sock_file write; 32