6 Commits

Author SHA1 Message Date
mtk12101
4dc268f514 [ALPS03825066] Fix build error
[Detail]
1.The types on /sys/ must be associated with the
"sysfs_type" attribute: sysfs_keypad_file
2.sysfs_type only have read permission

[Solution]
1.Change sysfs_keypad_file to sysfs_type
2.Modify the permission to read about sysfs_type

MTK-Commit-Id: 4cf285589167b25623a67c6b951c796846a9a3ad

Change-Id: I3dd516eaf9959611c9a2b003cb3af07a35da5442
CR-Id: ALPS03825066
Feature: [Android Default] SELinux, SEAndroid, and SE-MTK
2020-01-18 09:33:59 +08:00
Allen Chu
7a473d8720 [ALPS03804621] [P migration] Revert "Remove SEPolicy violated"
[Detail]
Modify file.te to avoid this violated:
type sysfs_keypad_file, file_type,sysfs_type;
==>type sysfs_keypad_file, fs_type;

So, revert this change.

MTK-Commit-Id: d60f20634eecfc97b7286c493884b3bea6d8e875

Change-Id: I9a1cd1d6888e4b9eb2fb1b70a4ad91d256e950c3
CR-Id: ALPS03804621
Feature: DSDS (Dual SIM Dual Standby) Framework-Common Framework(RIL)
2020-01-18 09:33:43 +08:00
Allen Chu
f58168abbd [ALPS03804621] [P migration] Remove SEPolicy violated
[Detail]
Android P adds "never allow" rule for access system file

MTK-Commit-Id: 819e979bea9491adf5fe40d804a9a49ea3931e86

Change-Id: Ie2bc5ce87a9ce0249ec8e4df03a416a7f94cb4d5
CR-Id: ALPS03804621
Feature: DSDS (Dual SIM Dual Standby) Framework-Common Framework(RIL)
2020-01-18 09:33:20 +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
mtk12101
bbecfaa68b [ALPS03825066] Resolve vendor violates
[Detail] Google add new neverallows rules on android P,
some rule violate the rules

[Solution] Remove the rules which violate google new rules

MTK-Commit-Id: ff683b4eee0a6dd95ff25fbb6c7d1fc3a79c604d

Change-Id: Iead494212c6adcec234eaef14c83d1f8c7a49deb
CR-Id: ALPS03825066
Feature: [Android Default] SELinux, SEAndroid, and SE-MTK
2020-01-18 09:29:34 +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