Files
cryptsetup/tests
Ondrej Kozina c9da460b6c Do not allow dangerous sector size change during reencryption.
By changing encryption sector size during reencryption we may
increase effective logical block size for dm-crypt active device.

For example if hosted filesystem on encrypted data device
has block size set to 512 bytes and we increase dm-crypt logical
size durign reencryption to 4096 bytes it breaks the filesystem.

Do not allow encryption sector size to be increased over value
provided by fs superblock in BLOCK_SIZE property.

The check is applied while initialising LUKS2 device encryption
(reencrypt --encrypt/--new) or when initialising LUKS2 reencryption
on active dm-crypt device.

Note that this check cannot be applied on offline device (data device
is encrypted).
2022-04-19 13:27:37 +00:00
..
2022-01-29 10:43:02 +01:00
2022-02-24 20:28:29 +01:00
2022-03-29 19:06:38 +00:00
2022-03-29 19:06:38 +00:00
2017-09-24 19:50:17 +02:00
2022-01-21 12:29:36 +01:00
2022-02-24 20:28:29 +01:00
2022-01-29 10:43:02 +01:00
2022-02-24 20:28:29 +01:00
2022-01-29 10:43:02 +01:00