12 Commits

Author SHA1 Message Date
mtk12096
3d72079909 [ALPS04345724] add sepolicy for merge_hal_service
Detail] Add SE policy for merge_hal_service

MTK-Commit-Id: 66cdaaaf50d07cb4b4e09b1aafbe0541f8156617

Change-Id: I514534a3a852af5d9393dacd4f920ea0b41effd5
CR-Id: ALPS04345724
Feature: Memory Optimization
2020-01-18 10:08:43 +08:00
Juju Sung
12bc2025e2 [ALPS04239425] Sepolicy: fix undefined type declration
[Detail]
Unknown type:untrusted_v2_app,alarm_device,qtaguid_proc,mtd_device
Duplicated type:proc_slabinfo

MTK-Commit-Id: 11ccfcffb994452eb58a697e94a8da748ac73933

Change-Id: I2e847041d14d6b6613044cfaa98f242b7fd9381a
CR-Id: ALPS04239425
Feature: Build System
2020-01-18 10:08:05 +08:00
mtk12101
722798a334 [ALPS03982747] Remove unused sepolicy rules
Some rules is no need any more, need to remove it.

MTK-Commit-Id: 49685f1299d990a7195a2d54b955517d8f2cc699

Change-Id: I4a590ad781589cf94989ce72c88751ac10b82eae
CR-Id: ALPS03982747
Feature: [Android Default] SELinux, SEAndroid, and SE-MTK
2020-01-18 10:02:25 +08:00
jerry-sc.wu
6926cdca23 [ALPS03946757] Thermal: Add permission
[Detail]
Google add a new tag in Android P
system/sepolicy/vendor/hal_thermal_default.te

Need to add mtktz and /proc/stat grant permission for thermal HAL.

[Solution]
Add grant permission in both
devicemediateksepolicybasicnon_plathal_thermal_default.te
devicemediateksepolicybasicnon_platmerged_hal_service.te

MTK-Commit-Id: b4e6eb391c134c4c4580fd352a0aa8fec56b0a5a

Change-Id: Ifb0aa31bf47d105429be2dad60477747f1009a5d
Signed-off-by: jerry-sc.wu <jerry-sc.wu@mediatek.com>
CR-Id: ALPS03946757
Feature: Thermal Management
2020-01-18 09:59:31 +08:00
Jimmy-YJ.Huang
14449e3c46 [ALPS03737981] FPSGO: merged_hal add permission
[Detail] merged_hal dont have fpsgo permission

[Solution] add permission

MTK-Commit-Id: e56babb07b17c48feab6839933472c5712c04a41

Change-Id: Ib8e69d0b44ea0605dece72c51afa01bc58f38717
CR-Id: ALPS03737981
Feature: System Performance
2020-01-18 09:44:54 +08:00
mtk12101
b46f5159b8 [ALPS03825066] Fix build error
[Detail]
1.Google neverallow to modify the /proc and /sys folder
2.vendor & system process can not access each file

[Solution]
1.Change the type of sysfs_file to common file
2.Mark the rules which violate the neverallow rules

MTK-Commit-Id: 326790e7af9c782f3dace5c667b4b07860370933

Change-Id: Ifa61d2561078d3b6cde612806607d35d6cfdc4d6
CR-Id: ALPS03825066
Feature: [Android Default] SELinux, SEAndroid, and SE-MTK
2020-01-18 09:33:28 +08:00
Jimmy-YJ Huang
5602864cb5 Merge "[ALPS03737981] power: prepare Hal version." into alps-trunk-p0.basic
Change-Id: I4b4abe6b727b7e92b480eee46fce9e6219f6ab73
MTK-Commit-Id: 0271da96341ac128874dc027fe57b2cec5dfca8e
2020-01-18 09:32:17 +08:00
Jimmy-YJ.Huang
d28ccc99bd [ALPS03737981] power: prepare Hal version.
[Detail]
prepare HAL version 2.0

MTK-Commit-Id: fa6c01053653fcc337a336c1da19c07db7a69486

Change-Id: I0da57902ef3fb8e7e9eadba892e57cc322025bc9
CR-Id: ALPS03737981
Feature: System Performance
2020-01-18 09:32:08 +08:00
henry huang
9764053433 [ALPS03841839] fix nvram SELinux violations
[Detail]fix nvram selinux violations

[Solution]remove system_data_file sepolicy from nvram_daemon.te/nvram_agent_binder.te

MTK-Commit-Id: 4a9272ef13c590133649ca46d962f14768a216ef

Change-Id: I473edae03de50c6d747477e34e6eb797b7b1875e
CR-Id: ALPS03841839
Feature: NVRAM Partition
2020-01-18 09:30:59 +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