Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 94706caf authored by Eric Biggers's avatar Eric Biggers
Browse files

ANDROID: dm: enable may_passthrough_inline_crypto on some targets



dm-linear obviously can pass through inline crypto support.

In addition, we need dm-bow to pass through inline crypto support, as
the userdata partition in Android may be located on top of dm-bow.

Bug: 137270441
Change-Id: Ib9b0f67b77391fa450394568ceed441c1508de6e
Signed-off-by: default avatarEric Biggers <ebiggers@google.com>
parent 44e1174c
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -725,6 +725,7 @@ static int dm_bow_ctr(struct dm_target *ti, unsigned int argc, char **argv)
	rb_insert_color(&br->node, &bc->ranges);

	ti->discards_supported = true;
	ti->may_passthrough_inline_crypto = true;

	return 0;

+1 −0
Original line number Diff line number Diff line
@@ -62,6 +62,7 @@ static int linear_ctr(struct dm_target *ti, unsigned int argc, char **argv)
	ti->num_secure_erase_bios = 1;
	ti->num_write_same_bios = 1;
	ti->num_write_zeroes_bios = 1;
	ti->may_passthrough_inline_crypto = true;
	ti->private = lc;
	return 0;