dhd: fix wifi driver caused selinux denied issue [1/1]
authorShuide Chen <shuide.chen@amlogic.com>
Tue, 22 Oct 2019 07:20:32 +0000 (15:20 +0800)
committerShuide Chen <shuide.chen@amlogic.com>
Tue, 22 Oct 2019 07:20:32 +0000 (15:20 +0800)
commit12cae11ecf31c225807745af5a3f36403f3cbf10
tree7b6acebd057a60f26127afe8b6781f42450bcb48
parentb78055178bc5f60e8ade74f5d7d5c86d3973283b
dhd: fix wifi driver caused selinux denied issue [1/1]

PD#SWPL-15494

Problem:
type=1400 audit(1571727793.256:4): avc: denied { search } for comm=
"init" name="wifi" dev="mmcblk0p17" ino=153543 scontext=u:r:vendor_
init:s0 tcontext=u:object_r:wifi_data_file:s0 tclass=dir permissive=0

when insmod dhd driver, trigger avc denied

Solution:
from android O, wifi related path changed from /data/misc/wifi
to /data/vendor/misc/wifi

Verify:
Locally

Change-Id: I69255412f9b666fd66981e7adc358132abcb43f6
Signed-off-by: Shuide Chen <shuide.chen@amlogic.com>
bcmdhd.1.363.59.144.x.cn/dhd.h
bcmdhd.1.363.59.144.x.cn/dhd_linux.c
bcmdhd.1.579.77.41.1.cn/dhd.h
bcmdhd.1.579.77.41.1.cn/dhd_linux.c
bcmdhd.100.10.315.x/dhd.h
bcmdhd.100.10.315.x/dhd_linux.c
bcmdhd.100.10.315.x/dhd_linux_exportfs.c
bcmdhd.100.10.315.x/wl_cfg80211.c