summaryrefslogtreecommitdiffstats
path: root/sepolicy/vendor/hal_rcsservice.te
blob: cd16cfa972b634e27f3bbde1dc8dec116b6fe386 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
type hal_rcsservice, domain;
type hal_rcsservice_exec, exec_type, vendor_file_type, file_type;

# Started by init
init_daemon_domain(hal_rcsservice)
net_domain(hal_rcsservice)

get_prop(hal_rcsservice, hwservicemanager_prop)

# To register imsrcsd to hwBinder
hwbinder_use(hal_rcsservice)
# add IUceSerive Hidl interface
add_hwservice(hal_rcsservice, hal_imsrcsd_hwservice)

get_prop(hal_rcsservice, hwservicemanager_prop)

# allow hal to read sysfs file
r_dir_file(hal_rcsservice, sysfs_msm_subsys)
r_dir_file(hal_rcsservice, sysfs_diag)

allow hal_rcsservice sysfs_timestamp_switch:file r_file_perms;

unix_socket_connect(hal_rcsservice, ims, ims)

# imsrcsd to bind with UceShimService.apk
binder_call(hal_rcsservice, dataservice_app)

# imsrcsd needs read/write access to devpts
allow hal_rcsservice devpts:chr_file rw_file_perms;

userdebug_or_eng(`
  allow hal_rcsservice diag_device:chr_file rw_file_perms;
')
dontaudit hal_rcsservice diag_device:chr_file rw_file_perms;