11 Commits

Author SHA1 Message Date
Shane Chien
1c8313c394 [ALPS04824504] Audio: Add permission for rt5509 SmartPA
Add permission for rt5509 SmartPA to access device node.

MTK-Commit-Id: 2dcda2ed6418dc8c60f0e696e31fde0642b53554

Change-Id: I1c08f0aff93f8984a685b70374f434972d5b7c8c
CR-Id: ALPS04824504
Feature: Phone Sound
2020-01-18 10:21:55 +08:00
chien-wei hsu
6bc8ac8bdb [ALPS04760982] audiohal: fix High risk SEPolicies of mtk_hal_audio
[detail]
remove sysfs file permission,
only request the sysfs_ccci file

MTK-Commit-Id: 0649e6c55c648d65fa9c599d73bfa98e02e918fe

Change-Id: Idab0ac8e4aff9234887f70dc60fe51339d78cd2b
CR-Id: ALPS04760982
Feature: [Module]Audio HAL
2020-01-18 10:19:52 +08:00
chien-wei hsu
723628ecbd [ALPS04286398] adsp: add adsp permission
[detail]
add device adsp permission

MTK-Commit-Id: e4e95de61164b584c97b949d2aa57ed17dd3120e

Change-Id: I691cb90e40034357d6a320bb0749db497b76a9e7
CR-Id: ALPS04286398
Feature: [Module]Audio OpenDSP
2020-01-18 10:16:14 +08:00
Shanshan Guo
62cf1a413a [ALPS04639771] SEPolicy: Modify workaround
[Detail]
There is a workaround for bring-up,
now it needs to be modified.

[Solution]
1.Split workaround to sepcial *.te
2.Modify ged sepolicy
3.Modify mistake
4.Add sepolicy

MTK-Commit-Id: 5a2b7e3fdc826a7ca6bc70a3810f14c1661e7d79

Change-Id: I0894de45e014a5eae754e35b57fbc9b21bc4bf90
CR-Id: ALPS04639771
Feature: [Android Default] SELinux, SEAndroid, and SE-MTK
2020-01-18 10:15:29 +08:00
Shane Chien
25fb796fea [ALPS04237702] Audio: Add permission for audio scp device
Add permission for audio scp device, instead of only
SCP SmartPA.

MTK-Commit-Id: 479293f8195469648aba65860920128fe85fa3f0

Change-Id: Ic33320ae0c8f36217da2aae0afba763609608af3
CR-Id: ALPS04237702
Feature: DSP SmartPA
(cherry picked from commit 1dfd94a4058c3d960539066bfe61d5032ca95c9d)
2020-01-18 10:08:26 +08:00
KaiChieh Chuang
c93a0e3335 [ALPS04036849] mtk_hal_audio: allow acquire wakelock
allow mtk_hal_audio to acquire wakelock

MTK-Commit-Id: 4ba376a88cb7e1c7748d793de04eb6949f3bd9c6

Change-Id: I9c0ffc9281ea4d7373c7acc31b965a75767675ef
CR-Id: ALPS04036849
Feature: [Module]Audio HAL
2020-01-18 10:07:31 +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
Denis Hsu
6878563342 [ALPS03841839] Add policy for using nvram function
[Detail]
The P version change nvdata path to /mnt/vendor/nvdata.
If want to open fstab when using nvram function,
it needs search policy.

[Solution]
allow xxx mnt_vendor_file:dir search

MTK-Commit-Id: a34d6ff7cf3b1545014a45f5052f7dbddf93808a

Change-Id: I2730d51963d3859008b4a53f06329ef0a23eb8f4
CR-Id: ALPS03841839
Feature: NVRAM Partition
2020-01-18 09:51:51 +08:00
chien-wei hsu
f1cabb065e [ALPS03898061] SeLinux: remove violate setting
[Detail]
remove workaround of data between core and vendor violator
1. remove audioserver.te violated setting
violated by allow audioserver nvdata_file:dir
violated by allow audioserver nvram_data_file:dir
violated by allow audioserver thermal_manager_data_file:dir
violated by allow audioserver mtk_audiohal_data_file:dir
violated by allow audioserver thermal_manager_data_file:file
violated by allow audioserver nvram_data_file:file
violated by allow audioserver nvdata_file:file

2. remove mtk_hal_audio.te violated setting
violated by allow mtk_hal_audio system_data_file:dir
violated by allow mtk_hal_audio media_rw_data_file:dir
violated by allow mtk_hal_audio radio_data_file:dir
violated by allow mtk_hal_audio radio_data_file:file
violated by allow mtk_hal_audio system_data_file:lnk_file
violated by allow mtk_hal_audio system_data_file:file
violated by allow mtk_hal_audio media_rw_data_file:file

audiohal_data_file is defined as core_data_file_type
it cant use in vendor partition. temporarily remove it.

MTK-Commit-Id: c0453cc6ede361322deb8f138055accc473511b8

Change-Id: I15649ad3351f1a7ee29956668862aad05efc0778
CR-Id: ALPS03898061
Feature: Phone Sound
2020-01-18 09:42:13 +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