Merge "Sepolicy-QTI/ADPL: Created a file context for sockets"

This commit is contained in:
qctecmdr Service 2019-03-23 10:32:08 -07:00 committed by Gerrit - the friendly Code Review server
commit 4a5e015318
10 changed files with 27 additions and 0 deletions

View file

@ -83,6 +83,9 @@ type qmuxd_socket, file_type;
type netmgrd_socket, file_type;
type thermal_socket, file_type;
#Define the qti socket type
type dataqti_socket, file_type;
type ims_socket, file_type;
type ipacm_socket, file_type;
type cnd_socket, file_type;

View file

@ -80,6 +80,7 @@
/dev/socket/thermal-recv-passive-client u:object_r:thermal_socket:s0
/dev/socket/thermal-send-rule u:object_r:thermal_socket:s0
/dev/socket/netmgr(/.*)? u:object_r:netmgrd_socket:s0
/dev/socket/qti_dpm_uds_file u:object_r:dataqti_socket:s0
/dev/socket/location(/.*)? u:object_r:location_socket:s0
/dev/socket/pps u:object_r:pps_socket:s0
/dev/nq-nci u:object_r:nfc_device:s0

View file

@ -45,3 +45,6 @@ userdebug_or_eng(`
')
allow qti mhi_device:chr_file rw_file_perms;
allow qti sysfs_mhi:dir r_dir_perms;
#Allow qti to create qti socket
allow qti dataqti_socket:sock_file rw_file_perms;

View file

@ -56,3 +56,6 @@ set_prop(adpl, vendor_dataadpl_prop)
userdebug_or_eng(`
diag_use(adpl)
')
#Allow adpl to create adpl socket
allow adpl dataadpl_socket:sock_file rw_file_perms;

View file

@ -37,6 +37,12 @@ type qmuxd_socket, file_type;
#Define the netmgrd socket type
type netmgrd_socket, file_type;
#Define the qti socket type
type dataqti_socket, file_type;
#Define the adpl socket type
type dataadpl_socket, file_type;
#QTI file types
type vendor_qti_data_file, file_type, data_file_type;

View file

@ -128,6 +128,8 @@
/dev/socket/qmux_radio(/.*)? u:object_r:qmuxd_socket:s0
/dev/socket/qmux_nfc(/.*)? u:object_r:qmuxd_socket:s0
/dev/socket/netmgr(/.*)? u:object_r:netmgrd_socket:s0
/dev/socket/qti_dpm_uds_file u:object_r:dataqti_socket:s0
/dev/socket/adpl_cmd_uds_file u:object_r:dataadpl_socket:s0
/dev/socket/sensor_ctl_socket u:object_r:sensors_socket:s0
/dev/socket/cnd u:object_r:cnd_socket:s0
/dev/socket/nims u:object_r:cnd_socket:s0

View file

@ -61,3 +61,6 @@ allow qti vendor_qti_data_file:dir rw_dir_perms;
userdebug_or_eng(`
diag_use(qti)
')
#Allow qti to create qti socket
allow qti dataqti_socket:sock_file rw_file_perms;

View file

@ -45,3 +45,6 @@ userdebug_or_eng(`
diag_use(adpl)
allow adpl sysfs_data:file r_file_perms;
')
#Allow adpl to create adpl socket
allow adpl dataadpl_socket:sock_file rw_file_perms;

View file

@ -53,6 +53,8 @@ type vendor_persist_mmi_file, file_type, vendor_persist_type;
#File type by mmi
type vendor_mmi_socket, file_type;
#ADPL socket file types
type dataadpl_socket, file_type;
#perf
type sysfs_lib, fs_type, sysfs_type;

View file

@ -48,6 +48,7 @@
/dev/socket/ssgqmig u:object_r:ssgqmig_socket:s0
/dev/socket/ssgtzd u:object_r:ssgtzd_socket:s0
/dev/socket/qdma(/.*)? u:object_r:qdma_socket:s0
/dev/socket/adpl_cmd_uds_file u:object_r:dataadpl_socket:s0
###################################
# System files