From 012f7bfa93c31143be57cb01ac747f7961b2e534 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Fri, 10 Aug 2018 19:23:10 +0200 Subject: Linux: Remove limitation of hidden volume protection on disk with sector size larger than 512 bytes. --- src/Core/Unix/CoreUnix.cpp | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/Core/Unix/CoreUnix.cpp b/src/Core/Unix/CoreUnix.cpp index 0fc69eec..372c450f 100644 --- a/src/Core/Unix/CoreUnix.cpp +++ b/src/Core/Unix/CoreUnix.cpp @@ -475,17 +475,6 @@ namespace VeraCrypt { if (volume->GetFile()->GetDeviceSectorSize() != volume->GetSectorSize()) throw ParameterIncorrect (SRC_POS); - -#if defined (TC_LINUX) - if (volume->GetSectorSize() != TC_SECTOR_SIZE_LEGACY) - { - if (options.Protection == VolumeProtection::HiddenVolumeReadOnly) - throw UnsupportedSectorSizeHiddenVolumeProtection(); - - if (options.NoKernelCrypto) - throw UnsupportedSectorSizeNoKernelCrypto(); - } -#endif } // Find a free mount point for FUSE service -- cgit v1.2.3