Merge "sepolicy: add sensing_vendor_data_file for sensing output"
This commit is contained in:
commit
59ddc6c41d
3 changed files with 6 additions and 0 deletions
1
qva/vendor/common/file.te
vendored
1
qva/vendor/common/file.te
vendored
|
@ -100,6 +100,7 @@ type wigig_vendor_wpa_socket, file_type;
|
||||||
# wigig_hostapd
|
# wigig_hostapd
|
||||||
type wigig_hostapd_socket, file_type, data_file_type;
|
type wigig_hostapd_socket, file_type, data_file_type;
|
||||||
type sensingdaemon_socket, file_type;
|
type sensingdaemon_socket, file_type;
|
||||||
|
type sensing_vendor_data_file, file_type, data_file_type;
|
||||||
|
|
||||||
#rmnet module files
|
#rmnet module files
|
||||||
type sysfs_rmnet, fs_type, sysfs_type;
|
type sysfs_rmnet, fs_type, sysfs_type;
|
||||||
|
|
1
qva/vendor/common/file_contexts
vendored
1
qva/vendor/common/file_contexts
vendored
|
@ -165,6 +165,7 @@
|
||||||
/data/vendor/wifi/wigig_hostapd(/.*)? u:object_r:wigig_hostapd_socket:s0
|
/data/vendor/wifi/wigig_hostapd(/.*)? u:object_r:wigig_hostapd_socket:s0
|
||||||
/data/vendor/lm(/.*)? u:object_r:lm_data_file:s0
|
/data/vendor/lm(/.*)? u:object_r:lm_data_file:s0
|
||||||
/data/vendor/secure_element(/.*)? u:object_r:secure_element_vendor_data_file:s0
|
/data/vendor/secure_element(/.*)? u:object_r:secure_element_vendor_data_file:s0
|
||||||
|
/data/vendor/sensing(/.*)? u:object_r:sensing_vendor_data_file:s0
|
||||||
|
|
||||||
###################################
|
###################################
|
||||||
# persist files
|
# persist files
|
||||||
|
|
4
qva/vendor/common/sensingdaemon.te
vendored
4
qva/vendor/common/sensingdaemon.te
vendored
|
@ -35,3 +35,7 @@ allow sensingdaemon self:unix_stream_socket { listen accept read write };
|
||||||
|
|
||||||
# Allow access to create socket
|
# Allow access to create socket
|
||||||
allow sensingdaemon self:qipcrtr_socket create_socket_perms_no_ioctl;
|
allow sensingdaemon self:qipcrtr_socket create_socket_perms_no_ioctl;
|
||||||
|
|
||||||
|
# Allow access to create data output files
|
||||||
|
allow sensingdaemon sensing_vendor_data_file:dir rw_dir_perms;
|
||||||
|
allow sensingdaemon sensing_vendor_data_file:file create_file_perms;
|
||||||
|
|
Loading…
Reference in a new issue