1044 Commits

Author SHA1 Message Date
Chien-Wei Hsu
d569ce167d Merge "[ALPS04286398] adsp: add adsp permission" into alps-trunk-q0.basic
Change-Id: I1ded0256d0891a753353d654600860b449c72971
MTK-Commit-Id: 628f3ced43fdc2466e3457ea70158c169c6faf77
2020-01-18 10:16:16 +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
Cosmo Sung
c8a28bd034 Merge "[ALPS04649355] TC1 Q migration" into alps-trunk-q0.basic
Change-Id: If0ee6963fc28d65cefe46ef4a47f8d5c8beb49e6
MTK-Commit-Id: 1fa774aa71061e9ad6d7e765a920b135cc6ceeda
2020-01-18 10:16:11 +08:00
Cosmo Sung
bd0e54fbb5 [ALPS04649355] TC1 Q migration
Add permission for IMtkRadioEx.

MTK-Commit-Id: 88ee7b7349158b7b17705cc54941f989bbe58e2f

Change-Id: I19d4494f707966265c364ae640f4f5455662708c
CR-Id: ALPS04649355
Feature: DSDS (Dual SIM Dual Standby) Framework-Common Framework(RIL)
2020-01-18 10:16:10 +08:00
lena wang
f288849b4b Merge "[ALPS04660540] SIM:Allow factory to access AOSP property" into alps-trunk-q0.basic
Change-Id: I511f4e7784a59cf80981dbd267d6da432116e2b5
MTK-Commit-Id: cd4bbdfa715f8434c047396b33f655bedc2f1449
2020-01-18 10:16:08 +08:00
Jibin Zhang
bf2e48d678 [ALPS04660540] SIM:Allow factory to access AOSP property
Add SELINUX permission to allow factory to access AOSP property

MTK-Commit-Id: c97b48cc3d6e3975d417fad03a5f0db5d0d84f99

Change-Id: Ib01f0792bfb4110aff7cba60d0ee7ddf6de6b391
CR-Id: ALPS04660540
Feature: SIM
2020-01-18 10:16:06 +08:00
Larry Liang
94b231fbb3 Merge "[ALPS04642542] add allow rule for reading tracing_on" into alps-trunk-q0.basic
Change-Id: I328ef6c3839dda06c8c7b5caec7d4ffcba656459
MTK-Commit-Id: 937bf8e174a07adcaf7a43ef9c50670afbfd7100
2020-01-18 10:16:05 +08:00
Huaiming Li
cbb2ca1665 [ALPS04642542] add allow rule for reading tracing_on
ensure aee_dumpstate can read tracing_on value

MTK-Commit-Id: a97d988f87616ea966acdfc090f665237098fb22

Change-Id: I04b844de30965f943b7d3d2be1c805c3158dbf13
CR-Id: ALPS04642542
Feature: Android Exception Engine(AEE)
2020-01-18 10:16:04 +08:00
Deepti Vashist
47867cc607 Merge "[ALPS04669482] Added SELinux policy for mediaswcodec" into alps-trunk-q0.basic
Change-Id: I2bc864b4cd21989e9113b9b8e61ba9f04bf9f8e4
MTK-Commit-Id: 276993cc3d265edbcc149e4522b4f10c0ac1378e
2020-01-18 10:16:03 +08:00
pankaj jangir
31c487c298 [ALPS04669482] Added SELinux policy for mediaswcodec
Add file & dir permission on gpu, proc_ged, and debugfs_ion

MTK-Commit-Id: b27f71d9a9c557042c7844b034d26c5a58895204

Change-Id: Ie0dce4d5fba5cfdce1b76cdd8706d81f010a3771
CR-Id: ALPS04669482
Feature: Video Player
2020-01-18 10:16:01 +08:00
stephen.wong
107835458d Merge "[ALPS04667747] selinux config" into alps-trunk-q0.basic
Change-Id: I3e79cc6f3c9232174facc3af80d73f41cef1894a
MTK-Commit-Id: d9364175022bb4793eb1c32089f7f6adf5b08b9b
2020-01-18 10:15:59 +08:00
stephen.wong
c9ac72bb74 [ALPS04667747] selinux config
add selinx config for thermal property

MTK-Commit-Id: 3399f43cfdc0e8ede5cd28b79737c35525cb50ee

Change-Id: Ic0cbbf250baea60347602e284cb6961cd453d721
CR-Id: ALPS04667747
Feature: [Android Default] SELinux, SEAndroid, and SE-MTK
2020-01-18 10:15:58 +08:00
Bo Shang
0e2cfc1985 Merge "[ALPS04669246] add sepolicy for dump proc/net" into alps-trunk-q0.basic
Change-Id: Icbee725aa67aa16d2fc36bb9fe9c71d055ac375b
MTK-Commit-Id: 7e29142f0ed4964fd2aeaf64b9143a8383d8930f
2020-01-18 10:15:56 +08:00
mtk11515
8f52102087 [ALPS04669246] add sepolicy for dump proc/net
[Solution] add sepolicy for dump proc/net

MTK-Commit-Id: 676c040c07303066916c4f1ca1d3f4d410b6735d

Change-Id: I4e3924a4b5ac611c2cce7b071935fed2b71c3398
CR-Id: ALPS04669246
Feature: Network Log Tool
2020-01-18 10:15:50 +08:00
Wei Fu
c902c2bb21 [ALPS04524960] Add SELinux policy for setting audio path
Add SELinux policy for setting audio path.

MTK-Commit-Id: a8b9bc5711b5aa66d292afd5ddff73c2233ce5c8

Change-Id: Iaeb63f082755b30f167eebc8094581823bc05826
CR-Id: ALPS04524960
Feature: Call Control Framework
2020-01-18 10:15:49 +08:00
Archilis Wang
03bb250992 [ALPS04671051] Support NR cell in SUPL
1. Add codes to handling to NR cell in SUPL task.
2. Avoid AVC messages due to gps_data_file

MTK-Commit-Id: aa1f052111fecc95e8af838f16a34cf2f2695f60

Change-Id: Id47d9ab2999ca482f4ec077a0d0d38f4060135ca
CR-Id: ALPS04671051
Feature: A-GPS
2020-01-18 10:15:48 +08:00
Yuhui Zhang
33cd81efe3 Merge "[ALPS04360439] [EM]sensor: seapp_contexts" into alps-trunk-q0.basic
Change-Id: I412735f20b2237ff4dee65c0c6614e14771b10e1
MTK-Commit-Id: 8b578d162200501bf5e6b715c9c951fb8e4a6541
2020-01-18 10:15:48 +08:00
Juan Rong
622ff9c7ea [ALPS04360439] [EM]sensor: seapp_contexts
Add sensorhub to seapp_contexts

MTK-Commit-Id: 7ba9222e70010a5ebc5ba54a50d824587dd58003

Change-Id: I5549731a3aea57ba0a3cfe6133dd6a4f75f1d615
CR-Id: ALPS04360439
Feature: Engineering Mode
2020-01-18 10:15:43 +08:00
Shanshan Guo
22def67dd5 Merge "[ALPS04668349] SEPolicy: Fix build error" into alps-trunk-q0.basic
Change-Id: I9cc0942ab1950840696f99e5f49f214125bfe025
MTK-Commit-Id: d67faa36634f296f71b6435bad4bcd1127a8391b
2020-01-18 10:15:42 +08:00
Shanshan Guo
54facf3dd8 [ALPS04668349] SEPolicy: Fix build error
[Detail]
mtk_em_tel_log_prop is defined in bsp/, the rule in basic/ will
cause error while building basic project.

[Solution]
Move the rule of mtk_em_tel_log_prop from basic/ to bsp/.

MTK-Commit-Id: 0d04d80f653343466407bd1dd3b260bfdd0859a9

Change-Id: Ibb01bd54502f5178fc35429c5df128a6c319e812
CR-Id: ALPS04668349
Feature: [Android Default] SELinux, SEAndroid, and SE-MTK
2020-01-18 10:15:40 +08:00
Shanshan Guo
9da0a3382a Merge "[ALPS04640303] SEPolicy: Fix app violation" into alps-trunk-q0.basic
Change-Id: I54a57ecf9ca4748c666aaf7f253e7c02e48db6b7
MTK-Commit-Id: 6d27da21401c62e0567e2e6c767f62b69c82fca7
2020-01-18 10:15:39 +08:00
Shanshan Guo
b11cda4bfd [ALPS04640303] SEPolicy: Fix app violation
[Detail]
There are some selinux violation for app in MTBF,
need to add some sepolicy for them.

[Solution]
1.Add sepolicy
2.Move sepolicy of untrusted_app_* to untrusted_app_*.te
3.Modify sepolicy

MTK-Commit-Id: 62b5c74c6d1d85acf0184fc18fca0b40c4a8e60c

Change-Id: Icac33ccc54b691ee0e4ab7088f77adb1c1a4a549
CR-Id: ALPS04640303
Feature: [Android Default] SELinux, SEAndroid, and SE-MTK
2020-01-18 10:15:38 +08:00
ILEX Lin
7012d951fc [ALPS04301155] Add sepolicy for map permission
[Detail]
Add map permission

MTK-Commit-Id: 7b56fd53c6750cad964b88143baad705cab0e5e7

Change-Id: Icda5b113470e4020fba7d955570cfc60d8a65e22
CR-Id: ALPS04301155
Feature: NFC Chipset Capability
2020-01-18 10:15:36 +08:00
Chang-An Chen
c5a06e5ce9 Merge "[ALPS04658973] ota update: add recovery.te for basic project" into alps-trunk-q0.basic
Change-Id: I61159a559b59bd9d9c98c8a1596331d5907db8b6
MTK-Commit-Id: 5506bffaa6d98355fd7db32bd698fecec97a4074
2020-01-18 10:15:35 +08:00
Freddy Hsin
dfac4fce0a [ALPS04658973] ota update: add recovery.te for basic project
add recovery.te to grant the permission under
recovery of basic function

MTK-Commit-Id: 5484785e1a1d5a45616e8b75b7bf42274314b042

Change-Id: I8bdfb2bc847154fb5b1c3ce4515541047c6df3b4
CR-Id: ALPS04658973
Feature: [Android Default] SIU (SD Image Update)
2020-01-18 10:15:30 +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
Zhongchao Xia
f513291cad Merge "[ALPS04654012] SurfaceFlinger: update proc_ged sepolicy" into alps-trunk-q0.basic
Change-Id: I682fe7121c21b1ab20a9062e254d2f14b09602b8
MTK-Commit-Id: f93f7492c759635796a507ef89feb4d7e192446a
2020-01-18 10:15:26 +08:00
Kaiduan.Cao
a7a2701b66 [ALPS04654012] SurfaceFlinger: update proc_ged sepolicy
Update the sepolicy for surfaceflinger proc_ged ioctl.

MTK-Commit-Id: 61dc5b4a1d4886d3a53879e4db927ec7f115b3b5

Change-Id: I1479e29fa864c44e8ed3850a650511ca4ba52602
CR-Id: ALPS04654012
Feature: [Module]SurfaceFlinger/HWComposer
2020-01-18 10:15:23 +08:00
Yongmao Xie
6d785caf19 Merge "[ALPS04660543] MDM HIDL change feature" into alps-trunk-q0.basic
Change-Id: I847f1900c968e9eefd45ae1a638b3a3d1e3a7f63
MTK-Commit-Id: 1d9837ff0d879163eb98109e274db29a016c716f
2020-01-18 10:15:22 +08:00
Zhengyu Zhan
bd57f96afe [ALPS04660543] MDM HIDL change feature
[Detail]
md_monitor will build to vendor image, now it will use HIDL to connect
with JAVA user.

device.mk, SELinux policy about md_monitor need change from system to
vendor, and add relate contents for HILD service.

MDML change:
PlainDataDecoder now need use new constructor with a context, old
constructor will throw an Exception.

For single modem bin:
layout and filter bin file will move from /data/md_mon to
/data/vendor/md_mon. JAVA user shall get layout file via HIDL, then
save a temp file in its cache folder.

For non-single modem bin:
layout file move from /system/etc/mddb/ to /vendor/etc/mddb/, filter bin
file move from /system/etc/firmware/ to /vendor/etc/firmware/. And
system process can access /vendor/etc/. So dont need other change.

MTK-Commit-Id: be91b65d9497e3190ea1127bc71ed2abcb32ed98

Change-Id: I5c99f81c4be7a9f41d3b955156ab3e50ec655d97
CR-Id: ALPS04660543
Feature: Modem Monitor(MDM) Framework
2020-01-18 10:15:17 +08:00
Ethan Lau (劉榮茂)
7bbd9db661 Merge "[ALPS04653648] Factory Mode: fix SElinux policy" into alps-trunk-q0.basic
Change-Id: Ie269effa84c31f1fa4b0e71eca17985d31391a8b
MTK-Commit-Id: 8a2011d115b294b0487d42e668ed3da9c074981d
2020-01-18 10:15:16 +08:00
Jenny Hsu
9018986a9a [ALPS04653648] Factory Mode: fix SElinux policy
[Detail] Add whitelist for SELinux avc denied problem

MTK-Commit-Id: 77c1c8b73aa059657ab355206e5bc73410db6534

Change-Id: I1e8911b3ccd94a0d59ab6f22dd7948d4fcb89abf
CR-Id: ALPS04653648
Feature: Factory Mode
2020-01-18 10:15:12 +08:00
Guoyi Qu
6424d6bcfc Merge "[ALPS04532537] Copy vendor modem db and filter" into alps-trunk-q0.basic
Change-Id: I492632bcd58169f121208cba92f9d49bae55bdac
MTK-Commit-Id: 88e9281d903d0132cdf089c4541b6effce5f3e05
2020-01-18 10:15:10 +08:00
bo.shang
5068833fef [ALPS04532537] Copy vendor modem db and filter
New feature:

Add selinux of HIDL service and client.

Use HIDL copy modem db and filter from vendor image

to data partition for modem log tool.

MTK-Commit-Id: 7fadaf0f2a60d05d7464264ef9e23a75ca27bb66

Change-Id: I12cc8614537f30e90a1717f9838c52283342eb55
CR-Id: ALPS04532537
Feature: Modem Log Tool
2020-01-18 10:15:08 +08:00
Ethan Lau (劉榮茂)
51644f6ec8 Merge "[ALPS04653648] Factory Mode: fix SElinux policy" into alps-trunk-q0.basic
Change-Id: I957bd048bf6649c4484b2012f64f4a9a10290c19
MTK-Commit-Id: feac521370436d73d3fd9443694aa1ac42ff94be
2020-01-18 10:15:06 +08:00
Jenny Hsu
5985a06909 [ALPS04653648] Factory Mode: fix SElinux policy
[Detail] Add whitelist for SELinux avc denied problem

MTK-Commit-Id: 69c17be2893ecc73c0b486728899d56c11587a08

Change-Id: I2fbf51c12e68b134d6ee7a95421dba0706894147
CR-Id: ALPS04653648
Feature: Factory Mode
2020-01-18 10:15:04 +08:00
Wilson Fan
5d35b26aba [ALPS04641674] Flashlight: add flashlight sepolicy in basic
[Detail]
Add flashlight device sepolicy in basic

MTK-Commit-Id: ad0aff2ace102a539e4c43b1b0d72257596ab45d

Change-Id: I5676a830af246c3856bd8ed26d5e79973abc33d1
CR-Id: ALPS04641674
Feature: [Android Default] Flashlight
2020-01-18 10:15:00 +08:00
Denis Hsu
346ca0c012 [ALPS04631260] skip selinux violation log for fstrim vendor folder
vold cannot do fstrim on vendor folders (ex: nvdata, protect_f)
because of never allow rule.
Thus, skip selinux violation log for fstrim vendor folder.

MTK-Commit-Id: cf15f3ec6ae93e65c1f13b22f044e766a63eaece

Change-Id: I9c26ee000b8554df7abb03141ecf73a78d727f87
CR-Id: ALPS04631260
Feature: [Android Default] SELinux, SEAndroid, and SE-MTK
2020-01-18 10:15:00 +08:00
Jianping Jiang
2a609d6b82 [ALPS04641743] GPS: factory execute mnld fail
Move mnld execute permission for factory from bsp to basic.

MTK-Commit-Id: 5f8449ec00c670d7b0901b9b4c167ee502cab88d

Change-Id: Ifdb13b700f63572b9df2ff0bb64315a42375df71
CR-Id: ALPS04641743
Feature: Factory Mode
2020-01-18 10:14:59 +08:00
Shanshan Guo
2bd9ab2104 [ALPS04654001] SEPolicy: add ioctlcmd for app
[Detail]
For Andorid Q, there is a more stringent restriction
for ioctl, app need to access pipe by ioctlcmd=0x5402.
avc: denied { ioctl } for comm="kd" path="pipe:[7173861]"
dev="pipefs" ino=7173861 ioctlcmd=0x5402
scontext=u:r:untrusted_app_25:s0:c512,c768
tcontext=u:r:untrusted_app_25:s0:c512,c768
tclass=fifo_file permissive=0 app=com.tencent.qqpimsecure

[Solution]
Add sepolicy for app to access pipe by ioctlcmd=0x5402

MTK-Commit-Id: d38b9f7f97aab7b23d80d0f3aac8e25a790c8c91

Change-Id: I5ac20bf2dffa0c297b32aaebd75db9e04c35cc79
CR-Id: ALPS04654001
Feature: [Android Default] SELinux, SEAndroid, and SE-MTK
2020-01-18 10:14:59 +08:00
Shanshan Guo
38ae1361bf [ALPS04653992] SEPolicy: mmap permission for app
[Detail]
In kernel 4.14, selinux security need to check if the process has the
map permission of mmap inode. App need the map permission to
read radio_data_file.

[Solution]
Add map permission for app to read radio_data_file.

MTK-Commit-Id: 698e603818ff37a59212a37a41ecbec8e8e30233

Change-Id: I8982ddbff40cfd7280c0a3dc5e8d2f6b6394e747
CR-Id: ALPS04653992
Feature: [Android Default] SELinux, SEAndroid, and SE-MTK
2020-01-18 10:14:58 +08:00
lokesh
96c9971cfd [ALPS04654005] Selinux error bootanimation
Allow SELinux permissions for all GED proc

MTK-Commit-Id: d371e1d19a81c711fa97dc73c51709c8f9eee142

Change-Id: I64155523baef9b75b8947626de7e4d5bd6b47795
CR-Id: ALPS04654005
Feature:[Module]Settings
2020-01-18 10:14:58 +08:00
mtk81325
0605921b96 [ALPS04304578] [V3]UDC: SElinux permission grant
Feature - Userdata Checkpoint

We will format the metadata partition(md_udc) in first boot-up,
because it is a RAW data part, so giving the permission grant
to e2fs.

MTK-Commit-Id: de837a8e097cad8067f5d653370545b51f8d457e

Change-Id: Iaebc665979ab36422b6df846a2f05450c222d1f5
CR-Id: ALPS04304578
Feature: [Android Default] F2FS File System
2020-01-18 10:14:58 +08:00
Hua Tian (田华)
2053ec451b Merge "[ALPS04649268] Save mobile log in data partition in meta mode" into alps-trunk-q0.basic
Change-Id: I5efc68f3ae699362104c5db0659b91fe65f37ce7
MTK-Commit-Id: 3294cc8af25cc2e6b4358acd0d6b2a589574b403
2020-01-18 10:14:57 +08:00
hua.tian
270eab4eb8 [ALPS04649268] Save mobile log in data partition in meta mode
Add SELINUX policy for mobile_log_d to save log in /data/debuglogger
and for getting log from adb.

MTK-Commit-Id: 8775f10bd89be7ac112cbc56daf422814f0f385f

Change-Id: I39e5e1d0ccb2381ef302c187ff83a9e9cb0fa959
CR-Id: ALPS04649268
Feature: Mobile Log Tool
2020-01-18 10:14:56 +08:00
Cheng-Wei Lee
dc1d2e3aba Merge "[ALPS04331556] Gralloc: Enable mapper 2.1 implement" into alps-trunk-q0.basic
Change-Id: If74e6a095cfb8b853358e446df7b6b5cbbda2b63
MTK-Commit-Id: 4add8c8425fe25734ce37b2a26860296f241247e
2020-01-18 10:14:54 +08:00
WEi Lee
0afde209c0 [ALPS04331556] Gralloc: Enable mapper 2.1 implement
[Detail]
Enable mapper 2.1 impl. on file contexts

MTK-Commit-Id: f70b1b9b0eb38ce6ec9a93f7667afb4c9e3bdd74

Change-Id: If5c793d8d7e0cbc3a94afa27274b828531e97c61
CR-Id: ALPS04331556
Feature: OpenGL|ES
2020-01-18 10:14:49 +08:00
Facer Pei
aeefff0ff1 Merge "[ALPS04331131] Wlan: wlan_assistant selinux" into alps-trunk-q0.basic
Change-Id: I8c0759fbaadc5a70e54a45d2696289bdfdc5a4b0
MTK-Commit-Id: 59fe152577a10dfb8887f36af0f010142e28b319
2020-01-18 10:14:48 +08:00
chun-yi lin
8700268780 [ALPS04331131] Wlan: wlan_assistant selinux
For Meta mode, we use the property to notify meta tool that NVRAM
has read. Set the selinux rule for this property.

MTK-Commit-Id: 0cafb33d13392e6a676930814e3df3ba27fb146b

Change-Id: I62ca6e004861720eb43b90ace6f5fff85da49298
Signed-off-by: Facer Pei <facer.pei@mediatek.com>
CR-Id: ALPS04331131
Feature: [Module]Wi-Fi Driver
(cherry picked from commit bf9cdf5f2598cecdc0b5f4fd1b1016b9fd77dfd6)
(cherry picked from commit a846ce17a1eedc26d31b6c82b2583f58cd8e53f5)
(cherry picked from commit 8f6643f055c69d5b45e17048ce9a76311d6fdd92)
2020-01-18 10:14:46 +08:00
Qiuyue Zhong (钟秋月)
4f69960fd1 Merge "[ALPS04608727] improve sepolicy for d2 plus" into alps-trunk-q0.basic
Change-Id: I76dc84c36793e15c855cf55ddd6d4711b1092b2b
MTK-Commit-Id: f42e007c213c1681904d72026af41a20d5e09d1d
2020-01-18 10:14:45 +08:00