• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1type ims, domain;
2type ims_exec, exec_type, vendor_file_type, file_type;
3
4init_daemon_domain(ims)
5net_domain(ims)
6
7get_prop(ims, hwservicemanager_prop)
8set_prop(ims, ims_prop)
9
10unix_socket_connect(ims, netmgrd, netmgrd)
11
12allow ims sysfs_soc:dir search;
13allow ims sysfs_soc:file r_file_perms;
14allow ims sysfs_timestamp_switch:file r_file_perms;
15
16allow ims self:capability net_bind_service;
17
18allow ims ion_device:chr_file r_file_perms;
19
20unix_socket_connect(ims, cnd, cnd)
21
22allow ims self:socket create_socket_perms;
23allow ims ims_socket:sock_file write;
24allow ims self:netlink_generic_socket create_socket_perms_no_ioctl;
25allow ims netmgrd_socket:dir search;
26allow ims netmgrd_socket:sock_file w_file_perms;
27allowxperm ims self:socket ioctl msm_sock_ipc_ioctls;
28allowxperm ims self:udp_socket ioctl RMNET_IOCTL_EXTENDED;
29
30r_dir_file(ims, sysfs_msm_subsys)
31r_dir_file(ims, sysfs_diag)
32
33hwbinder_use(ims)
34allow ims hal_cne_hwservice:hwservice_manager find;
35binder_call(ims, cnd)
36
37userdebug_or_eng(`
38  allow ims diag_device:chr_file rw_file_perms;
39')
40dontaudit ims diag_device:chr_file rw_file_perms;
41