> My problem is that if the crypting process is swapped out during
> crypting, one could be able to recover parts of uncrypted file
> in swap partition.
>
> Is there a way to malloc a non swappable part of memory ?
See man mlock(2), munlock(2), mlockall(2), and munlockall(2).
Lars.
-- Lars Fenneberg, lf@elemental.net (private), lf@cityline.net (work) pgp 1024/1A3A7A4D D1 28 F1 FF 3C 6B C0 27 CC 9C 6C 09 34 0A 55 18- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/