Merge "Sepolicy-QTI/ADPL: Created a file context for sockets"
This commit is contained in:
commit
4a5e015318
10 changed files with 27 additions and 0 deletions
3
generic/vendor/common/file.te
vendored
3
generic/vendor/common/file.te
vendored
|
@ -83,6 +83,9 @@ type qmuxd_socket, file_type;
|
||||||
type netmgrd_socket, file_type;
|
type netmgrd_socket, file_type;
|
||||||
type thermal_socket, file_type;
|
type thermal_socket, file_type;
|
||||||
|
|
||||||
|
#Define the qti socket type
|
||||||
|
type dataqti_socket, file_type;
|
||||||
|
|
||||||
type ims_socket, file_type;
|
type ims_socket, file_type;
|
||||||
type ipacm_socket, file_type;
|
type ipacm_socket, file_type;
|
||||||
type cnd_socket, file_type;
|
type cnd_socket, file_type;
|
||||||
|
|
1
generic/vendor/common/file_contexts
vendored
1
generic/vendor/common/file_contexts
vendored
|
@ -80,6 +80,7 @@
|
||||||
/dev/socket/thermal-recv-passive-client u:object_r:thermal_socket:s0
|
/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/thermal-send-rule u:object_r:thermal_socket:s0
|
||||||
/dev/socket/netmgr(/.*)? u:object_r:netmgrd_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/location(/.*)? u:object_r:location_socket:s0
|
||||||
/dev/socket/pps u:object_r:pps_socket:s0
|
/dev/socket/pps u:object_r:pps_socket:s0
|
||||||
/dev/nq-nci u:object_r:nfc_device:s0
|
/dev/nq-nci u:object_r:nfc_device:s0
|
||||||
|
|
3
generic/vendor/common/qti.te
vendored
3
generic/vendor/common/qti.te
vendored
|
@ -45,3 +45,6 @@ userdebug_or_eng(`
|
||||||
')
|
')
|
||||||
allow qti mhi_device:chr_file rw_file_perms;
|
allow qti mhi_device:chr_file rw_file_perms;
|
||||||
allow qti sysfs_mhi:dir r_dir_perms;
|
allow qti sysfs_mhi:dir r_dir_perms;
|
||||||
|
|
||||||
|
#Allow qti to create qti socket
|
||||||
|
allow qti dataqti_socket:sock_file rw_file_perms;
|
||||||
|
|
3
legacy/vendor/common/adpl.te
vendored
3
legacy/vendor/common/adpl.te
vendored
|
@ -56,3 +56,6 @@ set_prop(adpl, vendor_dataadpl_prop)
|
||||||
userdebug_or_eng(`
|
userdebug_or_eng(`
|
||||||
diag_use(adpl)
|
diag_use(adpl)
|
||||||
')
|
')
|
||||||
|
|
||||||
|
#Allow adpl to create adpl socket
|
||||||
|
allow adpl dataadpl_socket:sock_file rw_file_perms;
|
||||||
|
|
6
legacy/vendor/common/file.te
vendored
6
legacy/vendor/common/file.te
vendored
|
@ -37,6 +37,12 @@ type qmuxd_socket, file_type;
|
||||||
#Define the netmgrd socket type
|
#Define the netmgrd socket type
|
||||||
type netmgrd_socket, file_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
|
#QTI file types
|
||||||
type vendor_qti_data_file, file_type, data_file_type;
|
type vendor_qti_data_file, file_type, data_file_type;
|
||||||
|
|
||||||
|
|
2
legacy/vendor/common/file_contexts
vendored
2
legacy/vendor/common/file_contexts
vendored
|
@ -128,6 +128,8 @@
|
||||||
/dev/socket/qmux_radio(/.*)? u:object_r:qmuxd_socket:s0
|
/dev/socket/qmux_radio(/.*)? u:object_r:qmuxd_socket:s0
|
||||||
/dev/socket/qmux_nfc(/.*)? 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/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/sensor_ctl_socket u:object_r:sensors_socket:s0
|
||||||
/dev/socket/cnd u:object_r:cnd_socket:s0
|
/dev/socket/cnd u:object_r:cnd_socket:s0
|
||||||
/dev/socket/nims u:object_r:cnd_socket:s0
|
/dev/socket/nims u:object_r:cnd_socket:s0
|
||||||
|
|
3
legacy/vendor/common/qti.te
vendored
3
legacy/vendor/common/qti.te
vendored
|
@ -61,3 +61,6 @@ allow qti vendor_qti_data_file:dir rw_dir_perms;
|
||||||
userdebug_or_eng(`
|
userdebug_or_eng(`
|
||||||
diag_use(qti)
|
diag_use(qti)
|
||||||
')
|
')
|
||||||
|
|
||||||
|
#Allow qti to create qti socket
|
||||||
|
allow qti dataqti_socket:sock_file rw_file_perms;
|
||||||
|
|
3
qva/vendor/common/adpl.te
vendored
3
qva/vendor/common/adpl.te
vendored
|
@ -45,3 +45,6 @@ userdebug_or_eng(`
|
||||||
diag_use(adpl)
|
diag_use(adpl)
|
||||||
allow adpl sysfs_data:file r_file_perms;
|
allow adpl sysfs_data:file r_file_perms;
|
||||||
')
|
')
|
||||||
|
|
||||||
|
#Allow adpl to create adpl socket
|
||||||
|
allow adpl dataadpl_socket:sock_file rw_file_perms;
|
||||||
|
|
2
qva/vendor/common/file.te
vendored
2
qva/vendor/common/file.te
vendored
|
@ -53,6 +53,8 @@ type vendor_persist_mmi_file, file_type, vendor_persist_type;
|
||||||
#File type by mmi
|
#File type by mmi
|
||||||
type vendor_mmi_socket, file_type;
|
type vendor_mmi_socket, file_type;
|
||||||
|
|
||||||
|
#ADPL socket file types
|
||||||
|
type dataadpl_socket, file_type;
|
||||||
|
|
||||||
#perf
|
#perf
|
||||||
type sysfs_lib, fs_type, sysfs_type;
|
type sysfs_lib, fs_type, sysfs_type;
|
||||||
|
|
1
qva/vendor/common/file_contexts
vendored
1
qva/vendor/common/file_contexts
vendored
|
@ -48,6 +48,7 @@
|
||||||
/dev/socket/ssgqmig u:object_r:ssgqmig_socket:s0
|
/dev/socket/ssgqmig u:object_r:ssgqmig_socket:s0
|
||||||
/dev/socket/ssgtzd u:object_r:ssgtzd_socket:s0
|
/dev/socket/ssgtzd u:object_r:ssgtzd_socket:s0
|
||||||
/dev/socket/qdma(/.*)? u:object_r:qdma_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
|
# System files
|
||||||
|
|
Loading…
Reference in a new issue