3 Commits

Author SHA1 Message Date
Aayush Gupta
0f6aa91846 non_plat: Allow mtk_hal_wifi to set wifi version property
Denial observed without this change:
[   19.217624] .(3)[351:init]selinux: avc:  denied  { set } for property=vendor.wlan.firmware.version pid=1389 uid=1010 gid=1010 scontext=u:r:mtk_hal_wifi:s0 tcontext=u:object_r:vendor_wifi_version:s0 tclass=property_service permissive=1\x0a

Test: Boot and notice denial no longer appears

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
Change-Id: Id769a2012ff7c53320e8d7a44bc2f49230e2a0e9
2020-12-31 23:01:22 +05:30
Shanshan Guo
5da546820c [ALPS04968083] SEPolicy: Modify sepolicy files mode and type
[Detail]
The mode of sepolicy files should be -rw-r--r--,
and the type should be ASCII text with Unix/Linux format.

[Solution]
1.Use chmod 0644 to change sepolicy files mode.
2.Use iconv -t ASCII and dos2unix to change sepolicy files
  type and format.

MTK-Commit-Id: ee386fd7ca89105f70b96f6b58c5f0e372fe9a4b

Change-Id: Iac13b1ea8a4546168f68a7918acdcdb0588f6630
CR-Id: ALPS04968083
Feature: [Android Default] SELinux, SEAndroid, and SE-MTK
2020-12-21 22:01:08 +05:30
Dean Chiang
e13ddf727b [ALPS03945159] Add sepolicy for MTK wifi hidl
Add sepolicy for MTK wifi hidl.

MTK-Commit-Id: d88eefe1d29e7b73ad58a032cec50b5d675e3edf

Change-Id: Ibdacf7752bb434ff678e1573c21484d98d367005
CR-Id: ALPS03945159
Feature: Wi-Fi Tethering
2020-01-18 09:57:13 +08:00