wifi: Add sepolicy for qcom driver control interface

01-06 11:55:38.816   796   796 I auditd  : type=1400 audit(0.0:281): avc: denied { write } for comm="wifi_ext@1.0-se" name="wlan" dev="tmpfs" ino=984 scontext=u:r:hal_wifi_ext:s0 tcontext=u:object_r:device:s0 tclass=chr_file permissive=1
01-06 11:55:38.820   796   796 I auditd  : type=1400 audit(0.0:282): avc: denied { open } for comm="wifi_ext@1.0-se" path="/dev/wlan" dev="tmpfs" ino=984 scontext=u:r:hal_wifi_ext:s0 tcontext=u:object_r:device:s0 tclass=chr_file permissive=1

Bug: 209934729
Test: Basic function tests, SSR tests
Change-Id: Id6afd0580f8792eeb7ef8a25d42724ec79696875
This commit is contained in:
Hsiu-Chang Chen
2022-01-06 10:36:23 +08:00
parent a069c07972
commit 069de3333d
3 changed files with 6 additions and 0 deletions

2
vendor/device.te vendored Normal file
View File

@@ -0,0 +1,2 @@
# Wifi
type vendor_wlan_device, dev_type;

View File

@@ -7,3 +7,6 @@
/dev/lwis-sensor-imx712 u:object_r:lwis_device:s0
/dev/lwis-sensor-imx712-uw u:object_r:lwis_device:s0
/dev/lwis-sensor-imx787 u:object_r:lwis_device:s0
# Wifi
/dev/wlan u:object_r:vendor_wlan_device:s0

1
vendor/hal_wifi_ext.te vendored Normal file
View File

@@ -0,0 +1 @@
allow hal_wifi_ext vendor_wlan_device:chr_file w_file_perms;