Hey, Sorry for dropping in like this, couldn't find any information on this and I guess I'm too lazy to read all the relevant bits and pieces of the kernel sources to find out: I'm currently running encrypted root and swap, but would still like to use suspend to disk. Would early userspace be capable of inserting the crypto-loop module into the kernel, load the keys off my "secure device" and setup loops, all _before_ resume from disk takes place? Or lets rephrase: is early userspace executed or not when resuming from suspend to disk? Regards, johannes -- http://www.sipsolutions.de/ GnuPG key: http://www.sipsolutions.de/keys/JohannesBerg.asc Key-ID: 9AB78CA5 Johannes Berg <johannes@sipsolutions.de> Fingerprint = AD02 0176 4E29 C137 1DF6 08D2 FC44 CF86 9AB7 8CA5 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 194 bytes Desc: This is a digitally signed message part Url : http://www.zytor.com/pipermail/klibc/attachments/20031122/2b549ea1/attachment.bin
On Fri, 2003-11-21 at 15:55, Johannes Berg wrote:> Or lets rephrase: is early userspace executed or not when resuming from > suspend to disk?I don't know. You should really ask Pavel Machek, Pat Mochel or Nigel Cunningham what happens. The 2.6 software suspend functionality is rather a long way from being documented, and you're surely the first person to care about this care. <b
Hi!> > I do not think any userspace is executed during resume. [Resume is > > called as a late_initcall()]. Running userspace before resume would > > mean we'd have to be more carefull and stop processes etc. > > Well, yes. The kernel could just fault though if there are any processes > running, I wouldn't care ;-) > Ideal for my application would be if it would allow some program to > execute, and then resume once its finished (thereby allowing resume from > a then-decrypted loop). > Would resume handle modules being present (and used for IO!) during > resume?This is 2.7 material, and it is going to be pretty tricky -- need to decide what may be done before calling resume and what may not. Pavel -- When do you have a heart between your knees? [Johanka's followup: and *two* hearts?]