Sepolicy: set the property for dataadpl to start on bootup

set the property for dataadpl to start on bootup

Change-Id: I04bd132c50330839d26b177bf2ef2774664a2885
This commit is contained in:
Aman Gupta 2019-02-14 14:21:40 +05:30 committed by Gerrit - the friendly Code Review server
parent d5df8025f1
commit 9723220937
2 changed files with 18 additions and 1 deletions

View file

@ -29,3 +29,19 @@ type adpl, domain;
type adpl_exec, exec_type, vendor_file_type, file_type;
init_daemon_domain(adpl)
net_domain(adpl)
allow adpl { rmnet_device mhi_device ipa_dev }:chr_file rw_file_perms;
allow adpl self:{
socket
udp_socket
qipcrtr_socket
} create_socket_perms_no_ioctl;
set_prop(adpl, vendor_dataadpl_prop)
#diag
userdebug_or_eng(`
diag_use(adpl)
allow adpl sysfs_data:file r_file_perms;
')

View file

@ -28,6 +28,7 @@
allow qti_init_shell sysfs_npu:file rw_file_perms;
set_prop(qti_init_shell, vendor_mdm_helper_prop)
set_prop(qti_init_shell, vendor_mmi_prop)
set_prop(qti_init_shell, vendor_dataadpl_prop)
userdebug_or_eng(`
# Needed for starting console in userdebug mode