1 # Policy for /vendor/bin/pm-service 2 type per_mgr, domain; 3 type per_mgr_exec, exec_type, vendor_file_type, file_type; 4 5 allow per_mgr self:capability net_bind_service; 6 7 init_daemon_domain(per_mgr) 8 9 add_service(per_mgr, per_mgr_service) 10 11 vndbinder_use(per_mgr) 12 binder_call(per_mgr, rild) 13 binder_call(per_mgr, per_proxy) 14 15 allow per_mgr firmware_file:dir search; 16 allow per_mgr firmware_file:file r_file_perms; 17 allow per_mgr self:socket create_socket_perms; 18 allowxperm per_mgr self:socket ioctl msm_sock_ipc_ioctls; 19 allow per_mgr ssr_device:chr_file { open read }; 20 21 allow per_mgr sysfs:dir r_dir_perms; 22 23 r_dir_file(per_mgr, sysfs_msm_subsys) 24 25 userdebug_or_eng(` 26 allow rild ssr_device:chr_file { open read }; 27 ') 28