Add sepolicy for pixellogger

04-25 11:36:17.795  4101  4101 I auditd  : type=1400 audit(0.0:6339): avc: denied { search } for comm="LoggingService" name="wifi" dev="dm-40" ino=338 scontext=u:r:logger_app:s0:c229,c256,c512,c768 tcontext=u:object_r:vendor_wifi_vendor_data_file:s0 tclass=dir permissive=1 app=com.android.pixellogger
04-25 11:36:17.799   863   863 I auditd  : type=1400 audit(0.0:6340): avc: denied { search } for comm="wifi_ext@1.0-se" name="wifi" dev="dm-40" ino=338 scontext=u:r:hal_wifi_ext:s0 tcontext=u:object_r:vendor_wifi_vendor_data_file:s0 tclass=dir permissive=1

Bug: 230280450
Test: Pixelloger can collect WLAN logs
Change-Id: Id95e4132f2814deb1fbfb307568a4ece87a28611
This commit is contained in:
Hsiu-Chang Chen
2022-04-25 11:43:29 +08:00
parent 374602a559
commit 63cd5c6143
2 changed files with 4 additions and 0 deletions

View File

@@ -1,4 +1,5 @@
allow hal_wifi_ext vendor_wlan_device:chr_file w_file_perms;
allow hal_wifi_ext vendor_wifi_vendor_data_file:dir rw_dir_perms;
# write to files owned by location daemon
allow hal_wifi_ext vendor_location_socket:dir rw_dir_perms;

3
vendor/logger_app.te vendored Normal file
View File

@@ -0,0 +1,3 @@
userdebug_or_eng(`
allow logger_app vendor_wifi_vendor_data_file:dir rw_dir_perms;
')