platform_system_sepolicy/private/compat
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
..
26.0 Fix permissions for vold.post_fs_data_done 2021-04-26 12:43:05 -07:00
27.0 Fix permissions for vold.post_fs_data_done 2021-04-26 12:43:05 -07:00
28.0 Split gsi_metadata_file and add gsi_metadata_file_type attribute 2021-03-29 03:09:35 +00:00
29.0 Fix permissions for vold.post_fs_data_done 2021-04-26 12:43:05 -07:00
30.0 Fix permissions for vold.post_fs_data_done 2021-04-26 12:43:05 -07:00