diff --git a/lib/verity/verity.c b/lib/verity/verity.c index b97593826..5fe1cf76f 100644 --- a/lib/verity/verity.c +++ b/lib/verity/verity.c @@ -338,7 +338,8 @@ int VERITY_activate(struct crypt_device *cd, if (r) goto out; - r = device_block_adjust(cd, crypt_data_device(cd), DEV_EXCL, + r = device_block_adjust(cd, crypt_data_device(cd), + activation_flags & CRYPT_ACTIVATE_SHARED ? DEV_OK : DEV_EXCL, 0, &dmd.size, &dmd.flags); if (r) goto out;