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