Commit graph

6986 commits

Author SHA1 Message Date
Nicolas Geoffray
882537a989 Merge "Allow boot animation to update boot status." am: 82bf10a79c am: 75de97b2e4 am: 1f652713d1
Original change: https://android-review.googlesource.com/c/platform/system/sepolicy/+/1687883

Change-Id: I791ffa1d83a1bf9bbb5a15f69ffce6e7e86441ce
2021-04-29 09:32:32 +00:00
Nicolas Geoffray
82bf10a79c Merge "Allow boot animation to update boot status." 2021-04-29 07:53:05 +00:00
Treehugger Robot
539309d8a4 Merge "Add support for invoking derive_classpath from otadexopt" am: 59e8007be0 am: 85647c642b am: 88823836f0
Original change: https://android-review.googlesource.com/c/platform/system/sepolicy/+/1687094

Change-Id: I0a120c07cfeb52b432573a9ea8a4c056f7509814
2021-04-28 20:25:20 +00:00
Christian Wailes
6de8e5debe Merge "Add SELinux properties for artd" am: 6553a8dbe6 am: b9502c818f am: b921e1dac4
Original change: https://android-review.googlesource.com/c/platform/system/sepolicy/+/1663786

Change-Id: Ie4bd8ae58edc80993c56ba3cf806135c716526fc
2021-04-28 20:23:52 +00:00
Treehugger Robot
59e8007be0 Merge "Add support for invoking derive_classpath from otadexopt" 2021-04-28 17:44:31 +00:00
Christian Wailes
6553a8dbe6 Merge "Add SELinux properties for artd" 2021-04-28 16:41:09 +00:00
Nicolas Geoffray
6a311471a6 Allow boot animation to update boot status.
This CL was missed from the topic:
https://android-review.googlesource.com/q/topic:bootanim-percent

Test: update ART module, see animation go to 100%
Bug: 184881321
Change-Id: I59706718af11751a7e1f4b5ab1ff2793f554fb19
2021-04-28 15:17:09 +01:00
Midas Chien
748a7b2856 Add a sysprop to set display update imminent timeout am: 3c24ea1793 am: fca308fbdf am: 7aa2308b9e
Original change: https://android-review.googlesource.com/c/platform/system/sepolicy/+/1688265

Change-Id: Id7a3005d9dd2929debfd9ffcf6b470de937aa342
2021-04-28 07:34:39 +00:00
Chris Wailes
467d8a80ea Add SELinux properties for artd
Test: boot device and check for artd process
Change-Id: I2a161701102ecbde3e293af0346d1db0b11d4aab
2021-04-27 14:49:13 -07:00
Alex Light
8393a05fee Add support for invoking derive_classpath from otadexopt
otadexopt needs to be able to invoke derive_classpath in order to
determine the boot-classpath after the OTA finishes.

Test: manual OTA on blueline
Bug: 186432034
Change-Id: I3ec561fc0aa9de25ae1186f012ef72ba851990d0
2021-04-27 14:31:54 -07:00
Midas Chien
3c24ea1793 Add a sysprop to set display update imminent timeout
Adding 'ro.surface_flinger.display_update_imminent_timeout_ms' to set
timeout for rate limit display update imminent notifications.

Bug: 164411401
Change-Id: I90a00fe7f8df3aa505f08081d096fd83b3342f59
2021-04-27 20:45:29 +08:00
Treehugger Robot
36bcb00ddf Merge "[incfs] Allow everyone read the IncFS sysfs features" am: 98914119ae am: 5fc200133c am: 8dc1f81981
Original change: https://android-review.googlesource.com/c/platform/system/sepolicy/+/1683348

Change-Id: I147dd4ce4bb92294a60d98b7f840d17b5117f2b7
2021-04-26 23:28:56 +00:00
Treehugger Robot
98914119ae Merge "[incfs] Allow everyone read the IncFS sysfs features" 2021-04-26 22:19:37 +00:00
Treehugger Robot
88903b91a9 Merge "Fix permissions for vold.post_fs_data_done" am: 206d6d80a1 am: e85d0ef89c am: b99fe5711a
Original change: https://android-review.googlesource.com/c/platform/system/sepolicy/+/1684054

Change-Id: I0921af74d1309fcaa3f36e53476090da085ab07f
2021-04-26 22:09:08 +00:00
Treehugger Robot
206d6d80a1 Merge "Fix permissions for vold.post_fs_data_done" 2021-04-26 20:36:34 +00:00
Eric Biggers
040ce199b2 Fix permissions for vold.post_fs_data_done
The system property "vold.post_fs_data_done" is used by init and vold to
communicate with each other in order to set up FDE on devices that use
FDE.  It needs to be gettable and settable by vold, and settable by init
and vendor_init.  This was the case in Android 11 and earlier; however,
the change
https://android-review.googlesource.com/c/platform/system/sepolicy/+/1277447
("Rename exported and exported2 vold prop") broke this by giving this
property the type "vold_config_prop", which made it no longer settable
by vold.

Since none of the existing property types appear to be appropriate for
this particular property, define a new type "vold_post_fs_data_prop" and
grant the needed domains permission to get/set it.

This is one of a set of changes that is needed to get FDE working again
so that devices that launched with FDE can be upgraded to Android 12.

Bug: 186165644
Test: Tested FDE on Cuttlefish
Change-Id: I2fd8af0091f8b921ec37381ad3b85a156d074566
2021-04-26 12:43:05 -07:00
Hridya Valsaraju
4d8e3b032b Merge changes from topic "revert-1668411-MWQWEZISXF" am: 7362f58895 am: b4fe53980f am: cb7c75c028
Original change: https://android-review.googlesource.com/c/platform/system/sepolicy/+/1685768

Change-Id: I1cb8c339e1f75e3d9c0a8dc5d8c96c7b9ded79a6
2021-04-23 23:05:26 +00:00
Hridya Valsaraju
7362f58895 Merge changes from topic "revert-1668411-MWQWEZISXF"
* changes:
  Revert "Add a neverallow for debugfs mounting"
  Revert "Add neverallows for debugfs access"
  Revert "Exclude vendor_modprobe from debugfs neverallow restrictions"
  Revert "Check that tracefs files are labelled as tracefs_type"
2021-04-23 22:06:31 +00:00
Robert Horvath
f0989714ca Merge "Add bootanim property context, ro.bootanim.quiescent.enabled property" am: dbfe4809ba am: 03070a86ec am: 0b1d2a7385
Original change: https://android-review.googlesource.com/c/platform/system/sepolicy/+/1676224

Change-Id: I6b7b8419e27ce03fae35451ba3e7cc842ee67335
2021-04-23 17:46:15 +00:00
Robert Horvath
dbfe4809ba Merge "Add bootanim property context, ro.bootanim.quiescent.enabled property" 2021-04-23 16:45:32 +00:00
Hridya Valsaraju
f9dbb72654 Revert "Add a neverallow for debugfs mounting"
Revert submission 1668411

Reason for revert: Suspect for b/186173384
Reverted Changes:
Iaa4fce9f0:Check that tracefs files are labelled as tracefs_t...
I743a81489:Exclude vendor_modprobe from debugfs neverallow re...
I63a22402c:Add neverallows for debugfs access
I289f2d256:Add a neverallow for debugfs mounting

Change-Id: Ie04d7a4265ace43ba21a108af85f82ec137c6af0
2021-04-23 16:38:20 +00:00
Hridya Valsaraju
e95e0ec0a5 Revert "Add neverallows for debugfs access"
Revert submission 1668411

Reason for revert: Suspect for b/186173384
Reverted Changes:
Iaa4fce9f0:Check that tracefs files are labelled as tracefs_t...
I743a81489:Exclude vendor_modprobe from debugfs neverallow re...
I63a22402c:Add neverallows for debugfs access
I289f2d256:Add a neverallow for debugfs mounting

Change-Id: I9b7d43ac7e2ead2d175b265e97c749570c95e075
2021-04-23 16:38:20 +00:00
Hridya Valsaraju
231c04b2b9 Revert "Exclude vendor_modprobe from debugfs neverallow restrictions"
Revert submission 1668411

Reason for revert: Suspect for b/186173384
Reverted Changes:
Iaa4fce9f0:Check that tracefs files are labelled as tracefs_t...
I743a81489:Exclude vendor_modprobe from debugfs neverallow re...
I63a22402c:Add neverallows for debugfs access
I289f2d256:Add a neverallow for debugfs mounting

Change-Id: I04f8bfdc0e5fe8d2f7d6596ed7b840332d611485
2021-04-23 16:38:20 +00:00
Andrew Walbran
92c28f9237 Merge "Add crosvm domain and give virtmanager and crosvm necessary permissions." am: 3b6a385137 am: 787c8b3320 am: b52306081a
Original change: https://android-review.googlesource.com/c/platform/system/sepolicy/+/1655917

Change-Id: I359389015cba2eed89c2b03c7d65af1c38f49f02
2021-04-22 21:05:08 +00:00
Andrew Walbran
3b6a385137 Merge "Add crosvm domain and give virtmanager and crosvm necessary permissions." 2021-04-22 18:57:15 +00:00
Treehugger Robot
d21e4d0980 Merge changes from topic "debugfs_neverallow" am: 005ae599cd am: 95fef2b070 am: cf2b67a243
Original change: https://android-review.googlesource.com/c/platform/system/sepolicy/+/1668411

Change-Id: I1fe5c7c31f12e0a68c76dde8810aba465d499922
2021-04-22 17:30:53 +00:00
Treehugger Robot
005ae599cd Merge changes from topic "debugfs_neverallow"
* changes:
  Check that tracefs files are labelled as tracefs_type
  Exclude vendor_modprobe from debugfs neverallow restrictions
  Add neverallows for debugfs access
  Add a neverallow for debugfs mounting
2021-04-22 16:41:06 +00:00
Treehugger Robot
6298a5c3df Merge "sepolicy: Give access to ahal to flinger standby prop" am: e0646ba15b am: eba4818e88 am: b8d397db9b
Original change: https://android-review.googlesource.com/c/platform/system/sepolicy/+/1658623

Change-Id: Idbd91f061c7cd74c8943774493c05b8e32dc3e37
2021-04-22 03:47:11 +00:00
Treehugger Robot
e0646ba15b Merge "sepolicy: Give access to ahal to flinger standby prop" 2021-04-22 02:36:46 +00:00
David Massoud
d84abac63b Merge "Allow traced_probes to read devfreq" am: 47b6227134 am: eeb537fcb8 am: 418070b5ac
Original change: https://android-review.googlesource.com/c/platform/system/sepolicy/+/1676945

Change-Id: Ibe3c1ff8ed58ec1dc514802ca5c82bf9f14f2c67
2021-04-22 01:35:16 +00:00
David Massoud
47b6227134 Merge "Allow traced_probes to read devfreq" 2021-04-22 00:18:35 +00:00
Yurii Zubrytskyi
b382f02bf4 [incfs] Allow everyone read the IncFS sysfs features
Every process needs to be able to determine the IncFS features
to choose the most efficient APIs to call

Bug: 184357957
Test: build + atest PackageManagerShellCommandTest
Change-Id: Ia84e3fecfd7be1209af076452cc27cc68aefd80d
2021-04-21 15:15:40 -07:00
Hridya Valsaraju
4b6d50dcb4 Exclude vendor_modprobe from debugfs neverallow restrictions
vendor_modprobe loads kernel modules which may create files in
debugfs during module_init().

Bug: 179760914
Test: build
Change-Id: I743a81489f469d52f94a88166f8583a7d797db16
2021-04-21 14:13:41 -07:00
Hridya Valsaraju
a0b504a484 Add neverallows for debugfs access
Android R launching devices and newer must not ship with debugfs
mounted. For Android S launching devices and newer, debugfs must only be
mounted in userdebug/eng builds by init(for boot time initializations)
and dumpstate(for grabbing debug information from debugfs using the
dumpstate HAL).

This patch adds neverallow statements to prevent othe processes
being provided access to debugfs when the flag PRODUCT_SET_DEBUGFS_RESTRICTIONS
is set to true.

Test: make with/without PRODUCT_SET_DEBUGFS_RESTRICTIONS
Bug: 184381659
Change-Id: I63a22402cf6b1f57af7ace50000acff3f06a49be
2021-04-21 14:13:22 -07:00
Hridya Valsaraju
1c3d898d87 Add a neverallow for debugfs mounting
Android R launching devices and newer must not ship with debugfs
mounted. For Android S launching devices and newer, debugfs must only be
mounted in userdebug/eng builds by init(for boot time initializations)
and dumpstate(for grabbing debug information from debugfs). This patch
adds a neverallow statement that prevents processes other than init
from being provided access to mount debugfs in non-user builds
when the flag PRODUCT_SET_DEBUGFS_RESTRICTIONS is set to true.

Test: make with/without PRODUCT_SET_DEBUGFS_RESTRICTIONS
Bug: 184381659
Change-Id: I289f2d25662a78678929e29f83cb31cebd8ca737
2021-04-21 14:13:02 -07:00
Treehugger Robot
b632648cc5 Merge "Make suspend_prop system_vendor_config_prop" am: c78b80667c am: bed8f2ac24 am: 93119b8340
Original change: https://android-review.googlesource.com/c/platform/system/sepolicy/+/1681505

Change-Id: I179e81f0dd8990d0888e8b3e69b704fea8874a88
2021-04-21 01:42:02 +00:00
Treehugger Robot
c78b80667c Merge "Make suspend_prop system_vendor_config_prop" 2021-04-21 00:28:12 +00:00
Seth Moore
b2e17d8067 Merge "Enable pull metrics from keystore" am: 84742a3d92 am: ec3d371038 am: 742361a571
Original change: https://android-review.googlesource.com/c/platform/system/sepolicy/+/1674808

Change-Id: I0bc41204d247fff7121d8c77b7d28d3f129c352f
2021-04-20 17:13:21 +00:00
Benjamin Schwartz
c171a1d9b6 Make suspend_prop system_vendor_config_prop
Bug: 185810834
Test: adb shell getprop suspend.short_suspend_threshold_millis
Change-Id: I270057e5f81b220b7168573b516dd102650f11e1
2021-04-20 09:13:02 -07:00
Seth Moore
84742a3d92 Merge "Enable pull metrics from keystore" 2021-04-20 16:00:46 +00:00
Treehugger Robot
026a895f0c Merge "Move install_recovery.sh file_contexts mapping" am: 98dc738b57 am: 79d27196fd am: b48d208ee6
Original change: https://android-review.googlesource.com/c/platform/system/sepolicy/+/1679446

Change-Id: I65b552ab0bdcaf3cf53107c4fdfa15cb07e12a3f
2021-04-20 12:33:27 +00:00
Treehugger Robot
98dc738b57 Merge "Move install_recovery.sh file_contexts mapping" 2021-04-20 11:18:35 +00:00
Jeff Vander Stoep
bf49a89ba5 Move install_recovery.sh file_contexts mapping
The type is declared in vendor policy, so the mapping should live
there as well.

Fixes: 185288751
Test: TH
Change-Id: Ia446d7b5eb0444cdbd48d3628f54792d8a6b2786
2021-04-20 11:32:24 +02:00
Treehugger Robot
588c0f11d9 Merge "Add a property to enable runtime debugfs restrictions in non-user builds" am: f5ec134342 am: b9f8fd42d5 am: efb6c0b1b6
Original change: https://android-review.googlesource.com/c/platform/system/sepolicy/+/1663701

Change-Id: I3a8ea3bf524dd26e9bd1804898c7f4ca3c3a61be
2021-04-20 07:29:53 +00:00
Treehugger Robot
f5ec134342 Merge "Add a property to enable runtime debugfs restrictions in non-user builds" 2021-04-20 06:07:53 +00:00
Treehugger Robot
f4014837fa Merge "Add permission checker service" am: 644639584b am: e8a381e3e4 am: 82d927bad8
Original change: https://android-review.googlesource.com/c/platform/system/sepolicy/+/1678585

Change-Id: I85473ed47a9ad47ba1356149644464821bd84a25
2021-04-19 19:35:30 +00:00
Treehugger Robot
644639584b Merge "Add permission checker service" 2021-04-19 16:54:46 +00:00
Treehugger Robot
76bc29e532 Merge "Add existing ro.hdmi sysprops to sepolicy" am: e2133c2f3a am: 0f0dc9dd42 am: 7782083c8a
Original change: https://android-review.googlesource.com/c/platform/system/sepolicy/+/1675522

Change-Id: I869bc16de36c9da80198b75207954c5f60578e82
2021-04-19 09:47:26 +00:00
Treehugger Robot
e2133c2f3a Merge "Add existing ro.hdmi sysprops to sepolicy" 2021-04-19 08:29:45 +00:00
Paul Hu
f7738ba79d Merge "Amend networkstack sepolicy for testing" am: 78a7b56656 am: 44e653a769 am: 4240678a98
Original change: https://android-review.googlesource.com/c/platform/system/sepolicy/+/1675847

Change-Id: I0c704c6f15b7632ac1d8da9c4f60f5cdbf794267
2021-04-19 03:44:25 +00:00