1053 Commits

Author SHA1 Message Date
Chinwen Chang
b26257b43e [ALPS04682095] revert "[ALPS04455690] Whitelist some lmkd properties that go into /vendor/build.prop"
This reverts commit bc8b76b56605d264af1727cd234a5406da372744

MTK-Commit-Id: 70d80baace23b335bad1fe838af8662e4145feaa

Change-Id: Idfe9cf773b3434596d97e0c0412468635ef624c3
CR-Id: ALPS04682095
Feature: Memory Optimization
2020-01-18 10:16:29 +08:00
Shanshan Guo
ac04c06d44 [ALPS04661377] SEPolicy:workaround for google dumpstate avc error
[Detail]
In xTS, testNoBugreportDenials will check if there are any
avc denied log of dumpstate.
https://android-review.googlesource.com/c/platform/cts/+/667966

[Solution]
add dumpstate allow rules as workaround for google
dumpstate avc error.

MTK-Commit-Id: 98f2dcd0a8011ce5892a25bf40e3e94efe87e302

Change-Id: I12d8d197a815791be942336d6c951e38a3278d2c
CR-Id: ALPS04661377
Feature: [Android Default] SELinux, SEAndroid, and SE-MTK
2020-01-18 10:16:29 +08:00
Jianping Jiang
b3838f31bb Merge "[ALPS04674290] Correct mnld_device type" into alps-trunk-q0.basic
Change-Id: I16857bef7e386fefdb04f0b3d6798f49a94213ec
MTK-Commit-Id: 46c321079fa7510de79fc8b3b0d2096c85fa4fd9
2020-01-18 10:16:28 +08:00
Jianping Jiang
109462e1f2 [ALPS04674290] Correct mnld_device type
1. Remove mnld_device from lbs_dbg.te;
2. move mnld_device type to non_plat folder

MTK-Commit-Id: f575807c7ac6d6a30595479ae03339b5765ff884

Change-Id: I8ba23283a103f52c045ae6c69ec7fc4eca06df84
CR-Id: ALPS04674290
Feature: Location Chipset Capability
2020-01-18 10:16:26 +08:00
Guoyi Qu
c05f509f1b [ALPS04266403] add permission
Add permission for access data/debuglogger.

MTK-Commit-Id: 5aee880b2f482110007a55d23c65e5d86b65cf72

Change-Id: I55faf7bcd66beef34d916b594d3ad8cb62836e9d
CR-Id: ALPS04266403
Feature: Connsys Log Tool
2020-01-18 10:16:25 +08:00
lena wang
2ddeac52a9 Merge "[ALPS04607956] SIM:Add IMSI to sensitive property" into alps-trunk-q0.basic
Change-Id: Ib07607fc7274a5eb770eb155591fe59ee9421b18
MTK-Commit-Id: a23a5e67e573d5cf2e30741429d364fe2681534f
2020-01-18 10:16:24 +08:00
lena wang
271faac986 [ALPS04607956] SIM:Add IMSI to sensitive property
IMSI belongs to sensitive information and is not allowed to print.
Add IMSI property to sensitive group and it is not printed in
mtklogger property files.

MTK-Commit-Id: 9c0bde9784ce5f9f4a88ee6827faf864c248682a

Change-Id: If3721c66fc69f86424ed98193aecd600019071f8
CR-Id: ALPS04607956
Feature: SIM
2020-01-18 10:16:21 +08:00
Ping-Hsun Wu
746bea8548 Merge "[ALPS04672388] Change selinux permission for MDP user" into alps-trunk-q0.basic
Change-Id: I399e0d0423e8ab393740f8546465f5118c8fac3e
MTK-Commit-Id: 919592752ef6843078dc651cb0596f81864b92ec
2020-01-18 10:16:20 +08:00
Mike Hsieh
dc6c9adc15 [ALPS04672388] Change selinux permission for MDP user
Change selinux permission for MDP user on /dev/mdp_sync

MTK-Commit-Id: a9c03563cf5e96815399788228dc62d18d88026e

CR-Id: ALPS04672388
Change-Id: I3622da7b8ba4151f9cf79e9d4d9c8f73109ef684
Feature: [Module]MDP Driver
2020-01-18 10:16:18 +08:00
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