Return-Path: Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mail.saout.de (Postfix) with ESMTP for ; Fri, 18 Feb 2011 18:53:41 +0100 (CET) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PqUWQ-0006GB-6L for dm-crypt@saout.de; Fri, 18 Feb 2011 18:53:38 +0100 Received: from rain.gmane.org ([80.91.229.7]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 18 Feb 2011 18:53:38 +0100 Received: from baumane by rain.gmane.org with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 18 Feb 2011 18:53:38 +0100 From: Eric Bauman Date: Sat, 19 Feb 2011 04:53:20 +1100 Message-ID: References: <20110218173302.GA9234@tansi.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit In-Reply-To: <20110218173302.GA9234@tansi.org> Subject: Re: [dm-crypt] LUKS and LVM List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: dm-crypt@saout.de Thanks for the reply! With regards to the multiple containers, the configuration I'd run across was one container per partition, with the key for each stored in /. When the system was booted, the passphrase was entered, and each partition's container opened and mounted automatically. On 19/02/2011, Arno Wagner wrote: >> I typically randomise my block device before creating a LUKS container >> on it. Option 2 would seem to reduce the effectiveness of this because >> LVM will give clues to where real data might be. > > I don't follow. That encrypted data is present is obvious from > the LUKS header. What is in the container(s) is as opaque in > (1) as it is in (2), given that cryptographically strong > randomness is used for the overwrite (I use plain dm-crypt > with a random password and overwrite with conventional, > mt19997-generated randomness). I meant not that the data protection of one was better than the other, but rather in (2) LVM will store in plain-text both the start and end offset of the partition. So perhaps an attacker would have a better idea of where data is. Comparing knowing the partition starts at X and ends at Y, there is probably some encrypted data in there somewhere, versus a giant container with no indication of structure (could be encrypted data or could be random garbage). Thanks, Eric