verity: Add support for restart/panic on error flag.

Introduced in kernel 6.12.
This commit is contained in:
Milan Broz
2025-02-08 18:01:26 +01:00
parent 7ee0b02967
commit 41b8b02ccf
5 changed files with 26 additions and 1 deletions

View File

@@ -1510,6 +1510,8 @@ int crypt_keyslot_destroy(struct crypt_device *cd, int keyslot);
#define CRYPT_ACTIVATE_TASKLETS (UINT32_C(1) << 27)
/** dm-crypt: use high-priority workqueues */
#define CRYPT_ACTIVATE_HIGH_PRIORITY (UINT32_C(1) << 28)
/** dm-verity: also restart/panic on error, use with RESTART_ON_CORRUPTION or PANIC_ON_CORRUPTION */
#define CRYPT_ACTIVATE_ERROR_AS_CORRUPTION (UINT32_C(1) << 29)
/**
* Active device runtime attributes