mirror of
https://github.com/commaai/agnos-kernel-sdm845.git
synced 2026-06-08 11:24:51 +08:00
ANDROID: android-verity: mark dev as rw for linear target
Mark as rw when adding as linear target to allow changes to the underlying filesystem through adb disable verity and adb remount. (Cherry-picked from https://partner-android-review.googlesource.com/#/c/613573/ 79a3032bb62da65a5d724eb70c8bdc662945d475) BUG: 28845874 Signed-off-by: Badhri Jagan Sridharan <Badhri@google.com> Change-Id: If41e9cad8e0f054f4778c09a6e2f0cb8af6fddaf
This commit is contained in:
committed by
Badhri Jagan Sridharan
parent
de7675b291
commit
c4676ffbc3
@@ -646,6 +646,8 @@ static int add_as_linear_device(struct dm_target *ti, char *dev)
|
||||
android_verity_target.direct_access = dm_linear_direct_access,
|
||||
android_verity_target.io_hints = NULL;
|
||||
|
||||
set_disk_ro(dm_disk(dm_table_get_md(ti->table)), 0);
|
||||
|
||||
err = dm_linear_ctr(ti, DM_LINEAR_ARGS, linear_table_args);
|
||||
|
||||
if (!err) {
|
||||
|
||||
Reference in New Issue
Block a user