4 Commits

Author SHA1 Message Date
Tingting Lei
a8806ea9b3 [ALPS03943817] Add sepolicy for mtk_hal_bluetooth to access nvram
[Detail]
BT vendor lib cannot read the valid BD address from nvram
since selinux violation.
Android P version changes nvdata path to /mnt/vendor/nvdata.
If want to open fstab when using nvram function, it needs
search policy.

[Solution]
allow mtk_hal_bluetooth mnt_vendor_file:dir search

MTK-Commit-Id: 24997cbec894555c537930fe9f10122c450a5e4f

Change-Id: I9279614b100a2675ca88264899125ed549d3301f
CR-Id: ALPS03943817
Feature: BT AOSP
2020-01-18 09:56:07 +08:00
Peng Qi
9e04bd90cc [ALPS03893095] Selinux: MTK BT HAL
[Detail]
AOSP has defined neverallow rules
to restrict direct access to system files.

[Solution]
Since MTK does not use "/data/misc/bluedroid/" to
store BT address. It should be alright to remove
this kind of thing.

MTK-Commit-Id: 5b3aae9aebd39c24a3846c27c7ca9fceda9513d3

Change-Id: I5a8420e9f5259259b2bd11a6da033a140f0bea7c
CR-Id: ALPS03893095
Feature: BT Chipset Capability
2020-01-18 09:39:50 +08:00
Bo Ye
5849c224e3 [ALPS03825066] P migration selinux build failed fix
1. Mark polices which accessing proc/sysfs file system
    2. Add violator attribute to modules violate vendor/system rule.

MTK-Commit-Id: 3954cad7a1428cda694d8428c2235a78aa6e7cc8

Change-Id: I401ae5b87eb9a03f324bef83c6678149606b15a8
CR-Id: ALPS03825066
Feature: [Android Default] SELinux, SEAndroid, and SE-MTK
2020-01-18 09:29:36 +08:00
Chunyan Zhang
37e0caa36e import from mediatek/master to mediatek/alps-mp-o1.mp1
Change-Id: Ic78db8195c5c51f85c9c6fd3ef8333489afd6e79
MTK-Commit-Id: 848bf57127be9d01fd1df4aab95737855456afee
2020-01-18 09:29:32 +08:00