Home | History | Annotate | Download | only in common
      1 type hal_rcsservice, domain;
      2 type hal_rcsservice_exec, exec_type, vendor_file_type, file_type;
      3 
      4 # Started by init
      5 init_daemon_domain(hal_rcsservice)
      6 net_domain(hal_rcsservice)
      7 
      8 get_prop(hal_rcsservice, hwservicemanager_prop)
      9 
     10 # To register imsrcsd to hwBinder
     11 hwbinder_use(hal_rcsservice)
     12 # add IUceSerive and IService to Hidl interface
     13 add_hwservice(hal_rcsservice, hal_imsrcsd_hwservice)
     14 add_hwservice(hal_rcsservice, hal_imscallinfo_hwservice)
     15 
     16 get_prop(hal_rcsservice, ims_prop)
     17 
     18 get_prop(hal_rcsservice, hwservicemanager_prop)
     19 
     20 # allow hal to read sysfs file
     21 r_dir_file(hal_rcsservice, sysfs_msm_subsys)
     22 r_dir_file(hal_rcsservice, sysfs_diag)
     23 r_dir_file(hal_rcsservice, sysfs_soc)
     24 
     25 allow hal_rcsservice sysfs_timestamp_switch:file r_file_perms;
     26 
     27 #required for socket creation
     28 unix_socket_connect(hal_rcsservice, ims, ims)
     29 allow hal_rcsservice self:socket create_socket_perms;
     30 allowxperm hal_rcsservice self:socket ioctl msm_sock_ipc_ioctls;
     31 
     32 # imsrcsd to bind with UceShimService.apk
     33 binder_call(hal_rcsservice, dataservice_app)
     34 
     35 # imsrcsd needs read/write access to devpts
     36 allow hal_rcsservice devpts:chr_file rw_file_perms;
     37 
     38 userdebug_or_eng(`
     39   allow hal_rcsservice diag_device:chr_file rw_file_perms;
     40 ')
     41 
     42 # allow imsrcsd capabilities
     43 wakelock_use(hal_rcsservice)
     44 allow hal_rcsservice self:capability net_bind_service;
     45 
     46 set_prop(hal_rcsservice, ctl_vendor_imsrcsservice_prop)
     47 
     48 dontaudit hal_rcsservice kernel:system module_request;
     49