Also disable decryption of luks partition if it is copied in the operation stack.

This commit is contained in:
Andrius Štikonas 2016-05-18 15:45:00 +01:00
parent 063c50aec6
commit 6f8a2c7016
1 changed files with 4 additions and 0 deletions

View File

@ -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<CopyOperation*>(o);
const Partition* source = &copyOp->sourcePartition();
if (source == p)
return true;
}
return false;