From 6f8a2c7016dad712ed759b50f6384206c4aa4fa7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrius=20=C5=A0tikonas?= Date: Wed, 18 May 2016 15:45:00 +0100 Subject: [PATCH] Also disable decryption of luks partition if it is copied in the operation stack. --- src/core/operationstack.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/operationstack.cpp b/src/core/operationstack.cpp index 258f62d..18ff942 100644 --- a/src/core/operationstack.cpp +++ b/src/core/operationstack.cpp @@ -460,6 +460,10 @@ bool OperationStack::contains(const Partition* p) const foreach(Operation * o, operations()) { if (o->targets(*p)) return true; + CopyOperation* copyOp = dynamic_cast(o); + const Partition* source = ©Op->sourcePartition(); + if (source == p) + return true; } return false;