blob: bb34e84bec8934684dceadf050de93df7a5ec732 [file] [log] [blame]
type cnd, domain, mlstrustedsubject;
type cnd_exec, exec_type, vendor_file_type, file_type;
file_type_auto_trans(cnd, socket_device, cnd_socket);
# cnd is started by init, type transit from init domain to cnd domain
init_daemon_domain(cnd)
#communicating with QTI wlan driver for WFC/ VTiWLAN quality
allow cnd self:capability net_bind_service;
unix_socket_send(cnd, wpa, hal_wifi_supplicant)
allow cnd wpa_data_file:dir w_dir_perms;
allow cnd wpa_data_file:sock_file create_file_perms;
#allow processing of VoWifi indications from modem over QMI while dozing
allow cnd self:capability2 block_suspend;
allow cnd self:udp_socket create_socket_perms;
allow cnd self:{
# Allow receiving NETLINK responses from WLAN driver.
netlink_socket
netlink_generic_socket
qipcrtr_socket
} create_socket_perms_no_ioctl;
allowxperm cnd self:udp_socket ioctl SIOCGIFMTU;
#allow cnd sysfs_timestamp_switch:file r_file_perms;
r_dir_file(cnd, sysfs_msm_subsys)
r_dir_file(cnd, sysfs_diag)
r_dir_file(cnd, sysfs_soc)
r_dir_file(cnd, sysfs_ssr)
r_dir_file(cnd, sysfs_esoc)
dontaudit cnd sysfs_faceauth:dir search;
dontaudit cnd sysfs_faceauth:file { open read };
allow cnd proc_meminfo:file r_file_perms;
set_prop(cnd, cnd_vendor_prop)
# allow cnd to access cnd_data_file
allow cnd cnd_data_file:file create_file_perms;
allow cnd cnd_data_file:sock_file { unlink create setattr };
allow cnd cnd_data_file:dir rw_dir_perms;
# allow cnd to obtain wakelock
wakelock_use(cnd)
allow cnd ipa_vendor_data_file:dir r_dir_perms;
allow cnd ipa_vendor_data_file:file r_file_perms;
# To register cnd to hwbinder
add_hwservice(cnd, hal_datafactory_hwservice)
hwbinder_use(cnd)
get_prop(cnd, hwservicemanager_prop)
binder_call(cnd, dataservice_app)
#for video call
binder_call(cnd, ims)
binder_call(cnd, location)
userdebug_or_eng(`
binder_call(cnd, radio)
allow cnd diag_device:chr_file rw_file_perms;
')
# For WFC call(RAT change into IWLAN)
binder_call(cnd, qtidataservices_app)