Merge "sepolicy: add sensing_vendor_data_file for sensing output"

This commit is contained in:
qctecmdr 2019-07-04 12:51:11 -07:00 committed by Gerrit - the friendly Code Review server
commit 59ddc6c41d
3 changed files with 6 additions and 0 deletions

View file

@ -100,6 +100,7 @@ type wigig_vendor_wpa_socket, file_type;
# wigig_hostapd
type wigig_hostapd_socket, file_type, data_file_type;
type sensingdaemon_socket, file_type;
type sensing_vendor_data_file, file_type, data_file_type;
#rmnet module files
type sysfs_rmnet, fs_type, sysfs_type;

View file

@ -165,6 +165,7 @@
/data/vendor/wifi/wigig_hostapd(/.*)? u:object_r:wigig_hostapd_socket: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/sensing(/.*)? u:object_r:sensing_vendor_data_file:s0
###################################
# persist files

View file

@ -35,3 +35,7 @@ allow sensingdaemon self:unix_stream_socket { listen accept read write };
# Allow access to create socket
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;