From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757101AbcIVQDd (ORCPT ); Thu, 22 Sep 2016 12:03:33 -0400 Received: from imap.thunk.org ([74.207.234.97]:50922 "EHLO imap.thunk.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934847AbcIVQBj (ORCPT ); Thu, 22 Sep 2016 12:01:39 -0400 Date: Thu, 22 Sep 2016 11:59:39 -0400 From: "Theodore Ts'o" To: Richard Weinberger Cc: Jaegeuk Kim , linux-ext4@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, linux-fsdevel , "linux-kernel@vger.kernel.org" , David Gstir Subject: Re: ext4, f2fs: fscrypt_has_permitted_context() check in file open Message-ID: <20160922155939.vunlgdw4grnmutcp@thunk.org> Mail-Followup-To: Theodore Ts'o , Richard Weinberger , Jaegeuk Kim , linux-ext4@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, linux-fsdevel , "linux-kernel@vger.kernel.org" , David Gstir References: <6789d30e-f95d-d8bd-cd6e-664a89c0dfd1@nod.at> <20160922134433.w3riey2mhtvs54dx@thunk.org> <0216ba94-eb55-9617-9b0d-32b92ee41ec5@nod.at> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0216ba94-eb55-9617-9b0d-32b92ee41ec5@nod.at> User-Agent: NeoMutt/ (1.7.0) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: tytso@thunk.org X-SA-Exim-Scanned: No (on imap.thunk.org); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 22, 2016 at 04:21:30PM +0200, Richard Weinberger wrote: > > Got it. So, the use case is preventing off-line attacks. > But I fear this is only a drop in the bucket. What we really need is > meta data authentication. True security requires a system-wide design, sure. For example, you might want a locked bootloader that will only boot signed kernels. The kernel might then require to use a read-only root file system with dm-verity to make sure the system software can't be trojan'ed. And then you want the system software to enforce that the top-level directories which contain encrypted information are protected using the correct keys, perhaps using some trusted hardware store where the user's keys are stored (and only released when the proper password / pin is given). Given all of those induction steps, *then* the file system level checks that require that all subdirectories and files in an encrypted directories must be encrypted using the same key as their parent will provide the security you need. Cheers, - Ted