public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Ramdisk encryption
@ 2004-07-19 17:02 Lei Yang
  2004-07-19 20:15 ` Andreas Jellinghaus
  0 siblings, 1 reply; 4+ messages in thread
From: Lei Yang @ 2004-07-19 17:02 UTC (permalink / raw)
  To: linux-kernel

Hello,

Can I set up a ramdisk and use loopback encryption to encrypt it?
As far as I understand, the OS will keep data encrypted on the hard 
disk at all times and decrypts it in RAM only as it's read. So an encrypted 
executable on physical hard disk will be decrypted page by page upon
reading to RAM. But what happens to an executable sitting in ramdisk?
Can I also encrypt it? Since the code is in RAM, it should be running in place,
how do kernel deal with encrypted code and run? 

Any comments?

Thanks in advance!
Lei


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Ramdisk encryption
  2004-07-19 17:02 Lei Yang
@ 2004-07-19 20:15 ` Andreas Jellinghaus
  0 siblings, 0 replies; 4+ messages in thread
From: Andreas Jellinghaus @ 2004-07-19 20:15 UTC (permalink / raw)
  To: linux-kernel

you are looking for disk encryption.
take a look at dm-crypt. the kernel
will read the encrypted partition, decrypt,
run the software, and if you write data,
before writing it, the kernel will encrypt
it.

you don't need a ramdisk for that.

Andreas


^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: Ramdisk encryption
       [not found] <951A499AA688EF47A898B45F25BD8EE80126D4CA@mailer.nec-labs.com>
@ 2004-07-19 20:44 ` Andreas Jellinghaus
  0 siblings, 0 replies; 4+ messages in thread
From: Andreas Jellinghaus @ 2004-07-19 20:44 UTC (permalink / raw)
  To: Lei Yang; +Cc: linux-kernel

I never tried it, but I see no reason, why dm-crypt shouldn't work
on top of a ramdisk too. If you have any trouble with it, there
is a dm-crypt mailing list, and the author is very responsive.

Andreas



^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: Ramdisk encryption
@ 2004-07-19 21:28 Lei Yang
  0 siblings, 0 replies; 4+ messages in thread
From: Lei Yang @ 2004-07-19 21:28 UTC (permalink / raw)
  To: Andreas Jellinghaus; +Cc: linux-kernel

Thanks a lot! I'll try and let you know the result.
I also think it should work on ramdisk, just want to know how it really works internally to help better understand. Any recommended readings or materials?

Lei

-----Original Message-----
From: Andreas Jellinghaus [mailto:aj@dungeon.inka.de]
Sent: Monday, July 19, 2004 4:44 PM
To: Lei Yang
Cc: linux-kernel@vger.kernel.org
Subject: RE: Ramdisk encryption


I never tried it, but I see no reason, why dm-crypt shouldn't work
on top of a ramdisk too. If you have any trouble with it, there
is a dm-crypt mailing list, and the author is very responsive.

Andreas



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-07-19 21:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <951A499AA688EF47A898B45F25BD8EE80126D4CA@mailer.nec-labs.com>
2004-07-19 20:44 ` Ramdisk encryption Andreas Jellinghaus
2004-07-19 21:28 Lei Yang
  -- strict thread matches above, loose matches on Subject: below --
2004-07-19 17:02 Lei Yang
2004-07-19 20:15 ` Andreas Jellinghaus

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox