Merge "Add sepolicy dir and sock permissions to location module"

This commit is contained in:
Linux Build Service Account 2018-03-29 22:49:03 -07:00 committed by Gerrit - the friendly Code Review server
commit b3191052f3
2 changed files with 9 additions and 0 deletions

View file

@ -38,6 +38,8 @@ allow hal_wifi_supplicant_default wpa_data_file:file create_file_perms;
# Permission for wpa socket which IMS use to communicate
# # Allow wpa_supplicant to send back wifi information to cnd
allow hal_wifi_supplicant_default { cnd ims }:unix_dgram_socket sendto;
# # Allow wpa_supplicant to send back wifi information to location
allow hal_wifi_supplicant_default location:unix_dgram_socket sendto;
typeattribute hal_wifi_supplicant_default data_between_core_and_vendor_violators;

View file

@ -46,6 +46,13 @@ allow location location_data_file:file create_file_perms;
allow location location_socket:sock_file create_file_perms;
allow location location_socket:dir rw_dir_perms;
# /data/vendor/wifi/wpa
allow location wpa_data_file:dir rw_dir_perms;
allow location wpa_data_file:sock_file create_file_perms;
allow location hal_wifi_supplicant_default:unix_dgram_socket sendto;
userdebug_or_eng(`
allow location diag_device:chr_file rw_file_perms;
')