linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] tune2fs: allow remove VERITY
@ 2020-06-24  2:31 Gwendal Grignou
  2020-06-24  2:40 ` Eric Biggers
  0 siblings, 1 reply; 6+ messages in thread
From: Gwendal Grignou @ 2020-06-24  2:31 UTC (permalink / raw)
  To: sarthakkukreti, tytso, ebiggers; +Cc: linux-ext4, Gwendal Grignou

Allow verity flag to be removed from the susperblock:
Tests:
- check the signed file is readable by older kernel after flag
is removed. EXT4_VERITY_FL replaces EXT4_EXT_MIGRATE that has been
removed in 2009.
- when a new kernel is reinstalled, check reenabling verity flag
allow signature to be verified (fsverity measure ...).

Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
---
 misc/tune2fs.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/misc/tune2fs.c b/misc/tune2fs.c
index 314cc0d0..724b8014 100644
--- a/misc/tune2fs.c
+++ b/misc/tune2fs.c
@@ -198,7 +198,8 @@ static __u32 clear_ok_features[3] = {
 		EXT4_FEATURE_RO_COMPAT_QUOTA |
 		EXT4_FEATURE_RO_COMPAT_PROJECT |
 		EXT4_FEATURE_RO_COMPAT_METADATA_CSUM |
-		EXT4_FEATURE_RO_COMPAT_READONLY
+		EXT4_FEATURE_RO_COMPAT_READONLY |
+		EXT4_FEATURE_RO_COMPAT_VERITY
 };
 
 /**
-- 
2.27.0.111.gc72c7da667-goog


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-06-26 18:56 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-24  2:31 [PATCH] tune2fs: allow remove VERITY Gwendal Grignou
2020-06-24  2:40 ` Eric Biggers
2020-06-24  7:06   ` Gwendal Grignou
2020-06-24 16:09     ` Eric Biggers
2020-06-25 18:26       ` Gwendal Grignou
2020-06-26 18:56         ` Eric Biggers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).