sepolicy: tloc: add rule for vendor location data

Add rule to fix below denial
comm="tloc_daemon" name="location" dev="dm-5" ino=226
scontext=u:r:vendor_tlocd:s0 tcontext=u:object_r:
vendor_location_data_file:s0 tclass=dir permissive=0

Change-Id: Ie565027b720ea0f720b1fcae6987677aa36a7552
This commit is contained in:
Preeti Nagar 2020-11-23 11:23:42 +05:30 committed by Gerrit - the friendly Code Review server
parent a11ce2a0b7
commit 182968ad2c
2 changed files with 6 additions and 0 deletions

View file

@ -48,3 +48,6 @@ allow vendor_tlocd self:{ socket qipcrtr_socket } create_socket_perms;
allowxperm vendor_tlocd self:{ socket qipcrtr_socket } ioctl msm_sock_ipc_ioctls;
allow vendor_tlocd ion_device:chr_file rw_file_perms;
# Allow search of location vendor data files
allow vendor_tlocd vendor_location_data_file:dir search;

View file

@ -48,3 +48,6 @@ allow tlocd self:{ socket qipcrtr_socket } create_socket_perms;
allowxperm tlocd self:{ socket qipcrtr_socket } ioctl msm_sock_ipc_ioctls;
allow tlocd ion_device:chr_file rw_file_perms;
# Allow search of location vendor data files
allow tlocd location_data_file:dir search;