VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Core
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2018-06-10 22:12:32 (GMT)
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2018-06-10 22:14:53 (GMT)
commitd5dca62b044290475d9dd793e4abb58fbfe776d5 (patch)
tree7be77fd08807fe82682d9cb966418c89d0b8a9b8 /src/Core
parent509c8288d01070a4e1ac0723313f3d6cd6f61a72 (diff)
downloadVeraCrypt-d5dca62b044290475d9dd793e4abb58fbfe776d5.zip
VeraCrypt-d5dca62b044290475d9dd793e4abb58fbfe776d5.tar.gz
Linux/MacOSX/FreeBSD: Support mounting partially encrypted system partitions/drivers in ReadOnly mode in order to allow troubleshooting in some cases.
Diffstat (limited to 'src/Core')
-rw-r--r--src/Core/Unix/Linux/CoreLinux.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Core/Unix/Linux/CoreLinux.cpp b/src/Core/Unix/Linux/CoreLinux.cpp
index 0fa97f6..7f18fff 100644
--- a/src/Core/Unix/Linux/CoreLinux.cpp
+++ b/src/Core/Unix/Linux/CoreLinux.cpp
@@ -313,6 +313,7 @@ namespace VeraCrypt
if (options.NoKernelCrypto
|| !xts
|| algoNotSupported
+ || volume->IsEncryptionNotCompleted ()
|| volume->GetProtectionType() == VolumeProtection::HiddenVolumeReadOnly)
{
throw NotApplicable (SRC_POS);