Return-Path: Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.saout.de (Postfix) with ESMTPS for ; Mon, 12 Oct 2009 01:55:07 +0200 (CEST) Received: from list by lo.gmane.org with local (Exim 4.50) id 1Mx8Fl-000407-JB for dm-crypt@saout.de; Mon, 12 Oct 2009 01:55:05 +0200 Received: from xdsl-213-196-250-203.netcologne.de ([213.196.250.203]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 12 Oct 2009 01:55:05 +0200 Received: from jpabel by xdsl-213-196-250-203.netcologne.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 12 Oct 2009 01:55:05 +0200 From: =?utf-8?b?SsO8cmdlbg==?= Pabel Date: Sun, 11 Oct 2009 23:17:51 +0000 (UTC) Message-ID: References: <1253821495.4683.25.camel@P7230> <20090929134450.76dab774@tanana.suse.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: news Subject: Re: [dm-crypt] Shared library for cryptsetup List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: dm-crypt@saout.de Hi, > Interesting idea. I wonder whether those separate key files per user > are worth the effort though. LUKS has eight key slots so when > reserving one for the admin you still have seven left for users. > Have you considered simply storing a mapping of user names to key > slots? Well, one of the major reasons was that it eliminates this limit (although I agree that it's usually not really limit with practical implications). Another reason is that tokentube allows for different deployment options: it's possible to configure the system in such a way that the user's auth files (key files) are in fact owned by the user. That's not a common scenario but I've seen environments which required such setups. > Also, as long as you're using local authentication you don't need to > store the password for pam authentication. Should be sufficient to > just reconfigure the displaymanager to auto login the user that > unlocked the root device. True, but that requires "raw" device access (instead of "working" at the filesystem layer) - which most often requires root (or at least appropriate group) privileges for accessing the "raw" device during execution (like via setuid'ing the binary). All in all, I think it's a "clean" solution for the stated problem. jp