Merge "Add sepolicy dir and sock permissions to location module"
This commit is contained in:
commit
b3191052f3
2 changed files with 9 additions and 0 deletions
2
vendor/common/hal_wifi_supplicant.te
vendored
2
vendor/common/hal_wifi_supplicant.te
vendored
|
@ -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;
|
||||
|
||||
|
|
7
vendor/common/location.te
vendored
7
vendor/common/location.te
vendored
|
@ -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;
|
||||
')
|
||||
|
|
Loading…
Reference in a new issue