Also disable decryption of luks partition if it is copied in the operation stack.
This commit is contained in:
parent
063c50aec6
commit
6f8a2c7016
|
@ -460,6 +460,10 @@ bool OperationStack::contains(const Partition* p) const
|
||||||
foreach(Operation * o, operations()) {
|
foreach(Operation * o, operations()) {
|
||||||
if (o->targets(*p))
|
if (o->targets(*p))
|
||||||
return true;
|
return true;
|
||||||
|
CopyOperation* copyOp = dynamic_cast<CopyOperation*>(o);
|
||||||
|
const Partition* source = ©Op->sourcePartition();
|
||||||
|
if (source == p)
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue