Linux-kernel mailing list archive 1998-49,: Re: Unswappable memory needed is user space

# Re: Unswappable memory needed is user space

kwrohrer@ce.mediaone.net
Tue, 8 Dec 1998 10:58:45 -0600 (EST)

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: MOLNAR Ingo: "Re: Unswappable memory needed is user space"
- Previous message: Richard B. Johnson: "Re: Unswappable memory needed is user space"
- In reply to: christophe.leroy5@capway.com: "Unswappable memory needed is user space"
- Next in thread: MOLNAR Ingo: "Re: Unswappable memory needed is user space"

And lo, christophe.leroy5@capway.com saith unto me:
>
> 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 ?
>
Use mlock or mlockall. They have man pages.

Keith

    --
     "Well, look at that.  The sun's   | Linux: http://www.linuxhq.com     |"Zooty,
      coming up." -- John Sheridan,    | KDE:   http://www.kde.org         | zoot
      "Sleeping in Light", Babylon 5   | Keith: kwrohrer@enteract.com      | zoot!"
    www.midwinter.com/lurk/lurker.html | http://www.enteract.com/~kwrohrer | --Rebo

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

- Next message: MOLNAR Ingo: "Re: Unswappable memory needed is user space"
- Previous message: Richard B. Johnson: "Re: Unswappable memory needed is user space"
- In reply to: christophe.leroy5@capway.com: "Unswappable memory needed is user space"
- Next in thread: MOLNAR Ingo: "Re: Unswappable memory needed is user space"