Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp2973877imc; Wed, 13 Mar 2019 06:01:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqzUhbUvqptiS/dMopKwupIiceyTgrcKRu+KTLZYIQm7y0X55R9RI2uPUiZM7GKzGnKVy4jU X-Received: by 2002:aa7:8597:: with SMTP id w23mr42807803pfn.87.1552482093447; Wed, 13 Mar 2019 06:01:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552482093; cv=none; d=google.com; s=arc-20160816; b=vjuzOBiTMbxGPm5tNmBzC38jk56ffErvEFrsuiGtxMdIryWYY8ucbNwSQYPiI27M1T hgxh3MTuhbRnSq3dyXfYi233cHsOEMcwOH11Y7iFqvNUEPchNHyBP1Rue27yryUfX6dD sqgfhwt1qzpgZ1V+t6h4zAOyG6ykoZXTqFQjxpp8FeCvy9jYap7H5rsxoVrM4xJXx4Dd nWpfD4tq7KUul/FCbNNCCe2Nm8JJ3iHpX4nSkME3bVMY+e6ahgiWgQyKM2HScIyXuKd3 lLwSI0D9jTRwaz88s/53tRUflUPOrfCrI6/BIT/OFIPlrKO3D7rdRMBZD/E/LNyZv1eg qklg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=7gKsEeoESDrcfqDTvgMdk0JyDwmDyhjlv/6uISK/VfQ=; b=E0WJ9dlW+EX9eXX0BMk5dtmkTK+D8AAnaVWkTTVfaVn2T5Q94vpe6ruPMLRNf/CgCV AZfNRhPORJtTBImh8kGbZguX/IhfIP/hC70nE3fUnlcZwhfGGvwqo1Y8d6ZtsZxg1spK eJ+OwNp6PIq3y5jVz4E7urjgPLwKYBZYF6sGWuEayog2sVAGqQTtGtP3gc/wriizzHI7 /QYvcJeZiSloZ4GWOLvKrHE+BW2dJsjv0dgMxUe1t40qCjvFJAdgR1z5myu+YXhC6cVJ i9IAxUrrQNh2mi+4K0TdkRtcF7Ll2BZZtfYkO9/C7QAcEH9fw77d0rkQNlZLXscNOybB koCw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d11si10710344pls.255.2019.03.13.06.01.15; Wed, 13 Mar 2019 06:01:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726588AbfCMNAc convert rfc822-to-8bit (ORCPT + 99 others); Wed, 13 Mar 2019 09:00:32 -0400 Received: from lithops.sigma-star.at ([195.201.40.130]:42160 "EHLO lithops.sigma-star.at" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725907AbfCMNAb (ORCPT ); Wed, 13 Mar 2019 09:00:31 -0400 Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id 0DA5B609184E; Wed, 13 Mar 2019 14:00:30 +0100 (CET) Received: from lithops.sigma-star.at ([127.0.0.1]) by localhost (lithops.sigma-star.at [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id Rr70O0kMJH_J; Wed, 13 Mar 2019 14:00:29 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id 9C839609186C; Wed, 13 Mar 2019 14:00:29 +0100 (CET) Received: from lithops.sigma-star.at ([127.0.0.1]) by localhost (lithops.sigma-star.at [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id KvybbR3tQ9HN; Wed, 13 Mar 2019 14:00:29 +0100 (CET) Received: from blindfold.localnet (unknown [82.150.214.1]) by lithops.sigma-star.at (Postfix) with ESMTPSA id E8121609184E; Wed, 13 Mar 2019 14:00:28 +0100 (CET) From: Richard Weinberger To: Miklos Szeredi Cc: linux-fsdevel@vger.kernel.org, linux-fscrypt@vger.kernel.org, overlayfs , linux-kernel@vger.kernel.org Subject: Re: overlayfs vs. fscrypt Date: Wed, 13 Mar 2019 14:00:28 +0100 Message-ID: <1854703.ve7plDhYWt@blindfold> In-Reply-To: References: <4603533.ZIfxmiEf7K@blindfold> <1852545.qrIQg0rEWx@blindfold> MIME-Version: 1.0 Content-Transfer-Encoding: 8BIT Content-Type: text/plain; charset="iso-8859-1" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am Mittwoch, 13. M?rz 2019, 13:58:11 CET schrieb Miklos Szeredi: > On Wed, Mar 13, 2019 at 1:47 PM Richard Weinberger wrote: > > > > Am Mittwoch, 13. M?rz 2019, 13:36:02 CET schrieb Miklos Szeredi: > > > I don't get it. Does fscrypt try to check permissions via > > > ->d_revalidate? Why is it not doing that via ->permission()? > > > > Please let me explain. Suppose we have a fscrypto directory /mnt and > > I *don't* have the key. > > > > When reading the directory contents of /mnt will return an encrypted filename. > > e.g. > > # ls /mnt > > +mcQ46ne5Y8U6JMV9Wdq2C > > Why does showing the encrypted contents make any sense? It could just > return -EPERM on all operations? The use case is that you can delete these files if the DAC/MAC permissions allow it. Just like on NTFS. If a user encrypts files, the admin cannot read them but can remove them if the user is gone or loses the key. Thanks, //richard