Return-Path: Received: from srck.net (srck.net [89.185.227.42]) by mail.saout.de (Postfix) with ESMTP for ; Fri, 28 Aug 2009 00:46:18 +0200 (CEST) Received: from nyx.b42.cz (r2an99.net.upc.cz [62.245.103.99]) by srck.net (Postfix) with ESMTP id B97C6BFF12 for ; Fri, 28 Aug 2009 00:46:17 +0200 (CEST) Date: Fri, 28 Aug 2009 00:46:17 +0200 From: Martin Milata Message-ID: <20090827224617.GA31760@nyx.b42.cz> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="VS++wcV0S1rZb1Fb" Content-Disposition: inline Subject: [dm-crypt] cryptsetup support for dm-crypt suspend/resume List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: dm-crypt@saout.de --VS++wcV0S1rZb1Fb Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hello. I'm using dm-crypt to encrypt both my root and home partitions on my laptop. However, I use suspend-to-ram and rarely turn the computer off. I was wondering whether it would be possible to somehow tell dm-crypt to temporarily discard the encryption key and block all reads/writes until the key is provided again. This way, if i discarded the key to my /home before suspend-to-ram, the potential thief wouldn't be able to get anything else than what is cached in the ram (or at least, easily). Turns out device-mapper already has commands for blocking all i/o and resuming it again (dmsetup suspend, dmsetup resume) and that dm-crypt driver makes it possible to wipe/re-set the key while suspended. Only thing that's missing is userspace tool that could do this (or i just wasn't able to find one). Would it be possible to have e.g. luksSuspend and luksResume commands in cryptsetup, where luksSuspend would equal running "dmsetup suspend dev; dmsetup message dev 0 key wipe" (i.e. not really dependent on luks) and luksResume would get the password from user, decrypt the key in header and do equivalent of "dmsetup message dev 0 key set key; dmsetup resume dev"; and use luksSuspend before suspend-to-ram and luksResume after the wakeup? Does such a feature make sense or wouldn't it increase security of the partition in question at all? If it's not total nonsense and none of the developers would like to implement it himself, I'm willing to try to write a patch for cryptsetup. Thanks, -MM --VS++wcV0S1rZb1Fb Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkqXDLkACgkQZAWbWcbCTWRJVACfasG1/QS2WQiU/VVsJnusRfp0 3X8AniuYFVJMDVJREmslSxS4wK2Pq3Aj =FjgT -----END PGP SIGNATURE----- --VS++wcV0S1rZb1Fb--