Add sepolicy for hal_wifi_ext am: 0c59021e58

Original change: https://googleplex-android-review.googlesource.com/c/device/google/lynx-sepolicy/+/19429449

Change-Id: I408de5e4f42976fadc6c7bc2418e21e6ccc51564
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Hsiu-Chang Chen
2022-07-27 08:56:27 +00:00
committed by Automerger Merge Worker
3 changed files with 6 additions and 1 deletions

3
vendor/file.te vendored
View File

@@ -2,4 +2,5 @@ type vendor_location_data_file, file_type, data_file_type;
type vendor_location_socket, file_type; type vendor_location_socket, file_type;
type vendor_wifi_vendor_data_file, file_type, data_file_type; type vendor_wifi_vendor_data_file, file_type, data_file_type;
type vendor_wifihal_socket, file_type; type vendor_wifihal_socket, file_type;
type vendor_location_sysfs, fs_type, sysfs_type; type vendor_location_sysfs, fs_type, sysfs_type;
type vendor_proc_wifi_dbg, fs_type, proc_type;

View File

@@ -3,6 +3,7 @@ genfscon sysfs /devices/platform/10970000.hsi2c/i2c-4/i2c-cs40l26a u
# Wifi # Wifi
genfscon sysfs /devices/soc0/soc_id u:object_r:vendor_location_sysfs:s0 genfscon sysfs /devices/soc0/soc_id u:object_r:vendor_location_sysfs:s0
genfscon proc /debugdriver/driverdump u:object_r:vendor_proc_wifi_dbg:s0
# BMS # BMS
genfscon sysfs /devices/platform/10da0000.hsi2c/i2c-6/i2c-p9222 u:object_r:sysfs_wlc:s0 genfscon sysfs /devices/platform/10da0000.hsi2c/i2c-6/i2c-p9222 u:object_r:sysfs_wlc:s0

View File

@@ -11,3 +11,6 @@ allow hal_wifi_ext lowi_server:unix_dgram_socket sendto;
unix_socket_connect(hal_wifi, vendor_location, vendor_location) unix_socket_connect(hal_wifi, vendor_location, vendor_location)
allow hal_wifi_ext vendor_wifihal_socket:dir rw_dir_perms; allow hal_wifi_ext vendor_wifihal_socket:dir rw_dir_perms;
allow hal_wifi_ext vendor_wifihal_socket:sock_file create_file_perms; allow hal_wifi_ext vendor_wifihal_socket:sock_file create_file_perms;
# allow hal_wifi to write into /proc/debugdriver/driverdump
r_dir_file(hal_wifi_ext, vendor_proc_wifi_dbg);