1#ims rtp service
2type hal_imsrtp, domain;
3type hal_imsrtp_exec, exec_type, vendor_file_type, file_type;
4
5# Started by init
6init_daemon_domain(hal_imsrtp)
7net_domain(hal_imsrtp)
8
9hwbinder_use(hal_imsrtp)
10get_prop(hal_imsrtp, hwservicemanager_prop)
11add_hwservice(hal_imsrtp, hal_imsrtp_hwservice)
12
13allow hal_imsrtp self:socket create_socket_perms;
14unix_socket_connect(hal_imsrtp, ims, ims)
15
16allow hal_imsrtp sysfs_timestamp_switch:file r_file_perms;
17
18userdebug_or_eng(`
19  allow hal_imsrtp diag_device:chr_file rw_file_perms;
20')
21
22# ioctlcmd=c302
23allowxperm hal_imsrtp self:socket ioctl msm_sock_ipc_ioctls;
24
25allow hal_imsrtp self:capability net_bind_service;
26
27allow hal_imsrtp sysfs_timestamp_switch:file r_file_perms;
28allow hal_imsrtp ion_device:chr_file r_file_perms;
29r_dir_file(hal_imsrtp, sysfs_msm_subsys)
30r_dir_file(hal_imsrtp, sysfs_diag)
31r_dir_file(hal_imsrtp, sysfs_soc)
32
33allow hal_imsrtp ion_device:chr_file r_file_perms;
34get_prop(hal_imsrtp, ims_prop)
35binder_call(hal_imsrtp, radio)
36
37dontaudit hal_imsrtp kernel:system module_request;
38