lkml.org 
[lkml]   [1998]   [Dec]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Unswappable memory needed is user space
Quoting christophe.leroy5@capway.com (christophe.leroy5@capway.com):

> 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/

\
 
 \ /
  Last update: 2005-03-22 13:46    [W:0.096 / U:0.288 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site