Commit graph

925 commits

Author SHA1 Message Date
Automerger Merge Worker
fbfc64bcb0 Merge "sepolicy: new file_integrity_service" am: 8a40d6e70d am: 95daf42ef3 am: bd78650137
Change-Id: Ic8b3111b2e7c20405ff79260293f221d99bcbae1
2019-12-20 23:01:10 +00:00
Victor Hsieh
48a7b5a580 sepolicy: new file_integrity_service
Test: didn't see denials in dmesg during boot or API calls.
Bug: 142573505
Change-Id: Ifa271956bc51bf47d781cd9c9f95afb99c5f940f
2019-12-19 09:25:35 -08:00
Automerger Merge Worker
543878c0b0 Merge "[incremental] labels for incfs and directory root" am: 753ff93ac9 am: 5447ebdee1 am: 597849a405
Change-Id: I4f22ebdce589d0a4f2092245d6ff53aa01dffcb5
2019-12-19 06:39:21 +00:00
Songchun Fan
743f9eddf6 [incremental] labels for incfs and directory root
Adding two labels: "incfs" for the incremental filesystem and
"incremental_root_file" for file paths /data/incremental/*.

Doc: go/incremental-selinux

Test: manual
Change-Id: I7d45ed1677e3422119b2861dfc7b541945fcb7a2
2019-12-18 16:59:31 -08:00
Automerger Merge Worker
3df97da160 Merge "allow system_server to access files under /sys/kernel/ion/" am: a8ca12d1c0 am: 6a306acedd am: 5c515f5d03
Change-Id: I737d197f8ef6efb236008ccd52e9b83b919f8e44
2019-12-17 23:26:29 +00:00
Suren Baghdasaryan
4da970f372 allow system_server to access files under /sys/kernel/ion/
In order for system_server to report ION allocations in dumpsys meminfo
report it needs access to ION sysfs nodes.

Bug: 138148041
Test: dumpsys meminfo
Change-Id: I8b1efebe8f4b06a3975e96ddd6a8cbcacdb52fb2
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
2019-12-17 18:36:25 +00:00
Automerger Merge Worker
e98f78a0ab Merge "Create new system property type for Factory OTA could write system property" am: a75fa8058c am: 150bdab002 am: c188e2deca
Change-Id: Ic3b959a1bae773101eb8c6ee072d88457e162772
2019-12-15 19:49:31 +00:00
Treehugger Robot
a75fa8058c Merge "Create new system property type for Factory OTA could write system property" 2019-12-15 19:26:39 +00:00
Automerger Merge Worker
a8d174a243 Merge "selinux config for Incremental service" am: a48a2f185e am: c6cef62f6a am: 9ff094643f
Change-Id: Iba44e8db5251de7fec85b811ab00b2019b122b6f
2019-12-13 20:14:10 +00:00
Treehugger Robot
a48a2f185e Merge "selinux config for Incremental service" 2019-12-13 19:41:39 +00:00
Automerger Merge Worker
b55c0ace1a Allow Zygote and Installd to remount directories in /data/data am: 5b1b423039 am: 252678549c am: e7ab24953c
Change-Id: I628c8502e96572ed612ddd6213f2c080ce857090
2019-12-13 14:57:35 +00:00
Ricky Wai
5b1b423039 Allow Zygote and Installd to remount directories in /data/data
Zygote/Installd now can do the following operations in app data directory:
- Mount on it
- Create directories in it
- Mount directory for each app data, and get/set attributes

Bug: 143937733
Test: No denials at boot
Test: No denials seen when creating mounts
Change-Id: I6e852a5f5182f1abcb3136a3b23ccea69c3328db
2019-12-13 12:30:26 +00:00
Henry Tung
6d57b494c0 Create new system property type for Factory OTA could write system property
Due to Factory OTA client install in product partition but it also declare coredomian in
its sepolicy setting. That will let Factory OTA unable to find a property type could write system property.
But now Factory OTA have a restore NFC wake function need to write system property for communicate with bootloader.
So we need to create a new property type in system framework which could allow Factory OTA client to write system property.

Bug: 145178094
Test: Manual
Change-Id: Ic549cc939893ec67a46bf28a23ebeb9f9b81bd0b
2019-12-13 09:39:19 +00:00
Automerger Merge Worker
7d6f79e56d Merge changes I7620902b,Ia7cb4f84,Iff95982d am: 8f7a81ef5d am: 52abcfa525 am: 10e0622e6c
Change-Id: I4bc02272e809bd6028a7a3a0297275106c0bb418
2019-12-12 22:20:22 +00:00
Songchun Fan
f3380b151d selinux config for Incremental service
BUG: 136132412
Test: boots
Change-Id: I0bff222af54d617b7c849bbed6fa52b96d945e32
2019-12-12 22:01:00 +00:00
Ytai Ben-tsvi
8f7a81ef5d Merge changes I7620902b,Ia7cb4f84,Iff95982d
* changes:
  Allow audio_server to access soundtrigger_middleware service
  Allow soundtrigger_middleware system service
  Allow system service to access audio HAL (for soundtrigger)
2019-12-12 21:42:23 +00:00
Automerger Merge Worker
3314310018 Merge "selinux config for data loader manager service" am: 7a9f01d159 am: faeeb8de10 am: 0027dd8410
Change-Id: I04a93e841de4f7b2d63bb2538bd1c618bfa44477
2019-12-12 20:48:31 +00:00
Songchun Fan
7a9f01d159 Merge "selinux config for data loader manager service" 2019-12-12 19:50:40 +00:00
Ytai Ben-Tsvi
29c819c015 Allow soundtrigger_middleware system service
New system service, intended to replace all of the soundtrigger
middleware.

Change-Id: Ia7cb4f8436719ca3bf71ea4c2bc32995568ff01d
Bug: 142070343
2019-12-12 10:56:35 -08:00
Songchun Fan
c111e5a9b3 selinux config for data loader manager service
Test: boots
Change-Id: If489054a51838d4215202b5768d46c6278ed1aa2
2019-12-11 17:09:44 -08:00
Automerger Merge Worker
cbd87608df Merge "Modify SEPolicy to support SLCAN" am: 6ad4f3207a am: f1daf7567d am: 9beeb34e7b
Change-Id: I4101a255a284fcc1c04cf1833c30a23fcbdd4576
2019-12-11 22:08:06 +00:00
Chris Weir
6ad4f3207a Merge "Modify SEPolicy to support SLCAN" 2019-12-11 21:25:14 +00:00
Automerger Merge Worker
e0cca53fb5 Merge "Move linker config under /linkerconfig" am: cd74ef82fd am: 6814c41c12 am: 86dcbf3a24
Change-Id: Iea0e33a20f5dbc2698935b6cbc4130e37a619472
2019-12-11 03:36:49 +00:00
Kiyoung Kim
cd74ef82fd Merge "Move linker config under /linkerconfig" 2019-12-11 02:55:06 +00:00
Kenny Root
64de2059d3 Merge "Support Resume on Reboot" am: 6a9f7b265a am: 25e571fa5d
am: c11be97479

Change-Id: If3f7b5f69dc0cfba89e37d3bb22db84f5bde8e44
2019-12-10 05:11:13 -08:00
Oli Lan
380ed789b8 Add type for directories containing snapshots of apex data. am: 91ce5b9c22 am: 78a00c556b
am: 54d30430bd

Change-Id: Icef1a203ef844935aaf9cd73220230e8619d8403
2019-12-10 05:09:23 -08:00
Oli Lan
c18fb5552b Add type for APEX data directories. am: 79b4e1af4a am: fdf1a21ef8
am: cc0bc809b3

Change-Id: I7cdf17cdab85f2954acd23b056bf71e80c7b4f8b
2019-12-10 05:09:20 -08:00
Kenny Root
6a9f7b265a Merge "Support Resume on Reboot" 2019-12-10 12:59:35 +00:00
Kenny Root
76ea325a3d Support Resume on Reboot
When an OTA is downloaded, the RecoverySystem can be triggered to store
the user's lock screen knowledge factor in a secure way using the
IRebootEscrow HAL. This will allow the credential encrypted (CE)
storage, keymaster credentials, and possibly others to be unlocked when
the device reboots after an OTA.

Bug: 63928581
Test: make
Test: boot emulator with default implementation
Test: boot Pixel 4 with default implementation
Change-Id: I1f02e7a502478715fd642049da01eb0c01d112f6
2019-12-09 14:25:04 -08:00
Oli Lan
91ce5b9c22 Add type for directories containing snapshots of apex data.
This adds a new apex_rollback_data_file type for the snapshots (backups)
of APEX data directories that can be restored in the event of a rollback.

Permission is given for apexd to create files and dirs in those directories
and for vold_prepare_subdirs to create the directories.

See go/apex-data-directories for details.

Bug: 141148175
Test: Built and flashed, checked directory was created with the correct
type.

Change-Id: I94b448dfc096e5702d3e33ace6f9df69f58340fd
2019-12-09 11:16:24 +00:00
Oli Lan
79b4e1af4a Add type for APEX data directories.
This adds a new apex_module_data_file type for the APEX data directories
under /data/misc/apexdata and /data/misc_[de|ce]/<u>/apexdata.

Permission is given for vold to identify which APEXes are present and
create the corresponding directories under apexdata in the ce/de user
directories.

See go/apex-data-directories.

Bug: 141148175
Test: Built & flashed, checked directories were created.
Change-Id: I95591e5fe85fc34f7ed21e2f4a75900ec2cfacfa
2019-12-09 11:14:38 +00:00
Song Pan
8ab6394644 Merge "Add sepolicy for AppIntegrityService." am: 09ecf475e9 am: 007ce1a1b1
am: 2a12b1c3f1

Change-Id: I7ce5cef33585e63e03d3f7a56714be36083e52e9
2019-12-06 10:49:45 -08:00
Treehugger Robot
09ecf475e9 Merge "Add sepolicy for AppIntegrityService." 2019-12-06 18:37:02 +00:00
Tomasz Wasilczyk
79acbb460f Merge "Allow vendor-init selecting Vehicle HAL instance to use." am: e7f2a17b2e am: 638c43b624
am: a3ee0701c4

Change-Id: I67b7451f89d9f62c96d5d76b46e630d4205ee6da
2019-12-06 09:29:17 -08:00
Tomasz Wasilczyk
e7f2a17b2e Merge "Allow vendor-init selecting Vehicle HAL instance to use." 2019-12-06 16:55:48 +00:00
Anton Hansson
691e38855e Merge "Add sepolicy for sdkext module prop" am: 902f4fe2e6 am: ae699a1b3c
am: 216d4f07fb

Change-Id: I3ec9db0854e1d4a4fdf650c6586238ee7d060712
2019-12-06 03:32:53 -08:00
Anton Hansson
902f4fe2e6 Merge "Add sepolicy for sdkext module prop" 2019-12-06 11:13:03 +00:00
Mark Chien
7efa1ceed3 Merge "[Tether15] Allow system app to find TetheringManager" am: b1e670c24c am: d0ba68b2bb
am: 27f29c4cb0

Change-Id: I3c86a309d01fde9f62aab1442720537b3bf8b604
2019-12-06 00:40:39 -08:00
Victor Hsieh
37bdeb6378 Merge "sepolicy: allow rules for apk verify system property" am: 4c8a849f25 am: 9aeed582b3
am: 8fbd3fed28

Change-Id: Idb6b05539dd1d2b60d6c47162acc372cbf4959e5
2019-12-06 00:07:06 -08:00
Treehugger Robot
b1e670c24c Merge "[Tether15] Allow system app to find TetheringManager" 2019-12-06 03:32:50 +00:00
Tomasz Wasilczyk
d9999bebc9 Allow vendor-init selecting Vehicle HAL instance to use.
Bug: 143779011
Test: added PRODUCT_PROPERTY_OVERRIDES for ro.vehicle.hal
Change-Id: I01ec302f3aedae0b021aa34952805e764d45f431
2019-12-05 08:49:49 -08:00
Treehugger Robot
4c8a849f25 Merge "sepolicy: allow rules for apk verify system property" 2019-12-05 16:08:37 +00:00
Anton Hansson
e822545909 Add sepolicy for sdkext module prop
Add a domain for derive_sdk which is allowed to set
persist.com.android.sdkext.sdk_info, readable by all
apps (but should only be read by the BCP).

Bug: 137191822
Test: run derive_sdk, getprop persist.com.android.sdkext.sdk_info
Change-Id: I389116f45faad11fa5baa8d617dda30fb9acec7a
2019-12-05 14:11:50 +00:00
Song Pan
8be46bf2e0 Add sepolicy for AppIntegrityService.
CL that adds the service: http://ag/9554748

BUG:145674997
Test: Manually flash the device. Without this change, the devices goes into a
bootloop (http://gpaste/5033431010377728) if I uncommit the guard in
http://ag/c/platform/frameworks/base/+/9652133/21/services/core/java/com/android/server/integrity/AppIntegrityManagerService.java

Change-Id: Ib2daf9191900d94abeae207e18a77a5914d14783
2019-12-05 12:22:51 +00:00
Kiyoung Kim
00cf2fbe50 Move linker config under /linkerconfig
Currently linker config locates under /dev, but this makes some problem
in case of using two system partitions using chroot. To match system
image and configuration, linker config better stays under /linkerconfig

Bug: 144966380
Test: m -j passed && tested from cuttlefish
Change-Id: Iea67663442888c410f29f8dd0c44fe49e3fcef94
2019-12-05 12:42:29 +09:00
chrisweir
cd40aa0ab7 Modify SEPolicy to support SLCAN
SLCAN setup requires certain ioctls and read/write operations to
certain tty's. This change allows the HAL to set up SLCAN devices while
complying with SEPolicy.

In addition to adding support for SLCAN, I've also included permissions
for using setsockopt. In order for the CAN HAL receive error frames from
the CAN bus controller, we need to first set the error mask and filter
via setsockopt.

Test: manual
Bug: 144458917
Bug: 144513919
Change-Id: I63a48ad6677a22f05d50d665a81868011c027898
2019-12-04 14:06:09 -08:00
Automerger Merge Worker
338a4df95f Merge "MediaTranscodingService: Add sepolicy for MediaTranscodingService." am: 4c1e76adcb am: f5cdcb839b
Change-Id: Ie327948448240879bbfd91963dda80e298055867
2019-12-04 17:33:03 +00:00
Victor Hsieh
8b65b0b12d sepolicy: allow rules for apk verify system property
ro.apk_verity.mode was introduced in P on crosshatch. This change
changes the label from default_prop to a new property, apk_verity_prop.

ro.apk_verity.mode is set by vendor_init per build.prop, in order to
honor Treble split.  It is also read by system_server and installd
currently.

Test: verify functioning without denials in dmesg
Bug: 142494008
Bug: 144164497
Change-Id: I1f24513d79237091cf30025bb7ca63282e23c739
2019-12-03 10:09:35 -08:00
Hangyu Kuang
ee3a8ea798 MediaTranscodingService: Add sepolicy for MediaTranscodingService.
Bug:145233472
Test: Build and flash the phone.
"adb shell dumpsys -l | grep media" shows media.transcoding service.

Change-Id: I48a42e7b595754989c92a8469eb91360ab6db7c6
2019-12-02 13:57:28 -08:00
Mark Chien
9dfaa7dcc6 [Tether15] Allow system app to find TetheringManager
Bug: 144320246
Test: -build, flash, boot
      -OFF/ON hotspot

Change-Id: I8ce7ac5eb8198f0df4a2da426e3c56e8915e746a
2019-12-02 18:01:33 +08:00