fstab: add back inlinecrypt for hw encryption
Without this flag, fscrypt will return error for any filesystem operation involving the partitions mounted with the fileencryption=::inlinecrypt_optimized flag. Bug: 241606997 Test: enable KDN, switch to :gen_fstab.foo-hw-encrypt Signed-off-by: Kenny Root <kroot@google.com> Change-Id: I9601fcdfa627df4e67f1586cd32ceef3c1f9ecac
This commit is contained in:
parent
d7016254c8
commit
4e34e0ac28
2 changed files with 4 additions and 1 deletions
|
@ -38,6 +38,7 @@ genrule {
|
|||
srcs: ["fstab.zuma.in"],
|
||||
out: ["fstab.zuma"],
|
||||
cmd: "sed -e s/@fileencryption@/::inlinecrypt_optimized+wrappedkey_v0/" +
|
||||
" -e s/@inlinecrypt@/inlinecrypt/ " +
|
||||
" -e s/@metadata_encryption@/:wrappedkey_v0/ $(in) > $(out)",
|
||||
}
|
||||
|
||||
|
@ -46,6 +47,7 @@ genrule {
|
|||
srcs: ["fstab.zuma.in"],
|
||||
out: ["fstab.zuma"],
|
||||
cmd: "sed -e s/@fileencryption@/aes-256-xts/" +
|
||||
" -e s/@inlinecrypt@// " +
|
||||
" -e s/@metadata_encryption@// $(in) > $(out)",
|
||||
}
|
||||
|
||||
|
@ -54,6 +56,7 @@ genrule {
|
|||
srcs: ["fstab.zuma.in"],
|
||||
out: ["fstab.zuma-fips"],
|
||||
cmd: "sed -e s/@fileencryption@/aes-256-xts/" +
|
||||
" -e s/@inlinecrypt@/inlinecrypt/ " +
|
||||
" -e s/@metadata_encryption@/aes-256-xts/ $(in) > $(out)",
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue