From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.5 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS,USER_AGENT_MUTT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3B4C7C43381 for ; Wed, 13 Mar 2019 19:20:03 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 149E82075C for ; Wed, 13 Mar 2019 19:20:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728982AbfCMTTz (ORCPT ); Wed, 13 Mar 2019 15:19:55 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:34710 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728695AbfCMTTy (ORCPT ); Wed, 13 Mar 2019 15:19:54 -0400 Received: from viro by ZenIV.linux.org.uk with local (Exim 4.92 #3 (Red Hat Linux)) id 1h49Pm-0007l8-7E; Wed, 13 Mar 2019 19:19:46 +0000 Date: Wed, 13 Mar 2019 19:19:46 +0000 From: Al Viro To: Eric Biggers Cc: Theodore Ts'o , Amir Goldstein , Richard Weinberger , Miklos Szeredi , linux-fsdevel , linux-fscrypt@vger.kernel.org, overlayfs , linux-kernel , Paul Lawrence Subject: Re: overlayfs vs. fscrypt Message-ID: <20190313191945.GT2217@ZenIV.linux.org.uk> References: <4603533.ZIfxmiEf7K@blindfold> <1854703.ve7plDhYWt@blindfold> <4066872.KGdO14EQMx@blindfold> <20190313151633.GA672@mit.edu> <20190313160616.GR2217@ZenIV.linux.org.uk> <20190313164432.GE703@sol.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190313164432.GE703@sol.localdomain> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org On Wed, Mar 13, 2019 at 09:44:33AM -0700, Eric Biggers wrote: > > Just to make sure - you do realize that ban on multiple dentries refering > > to the same directory inode is *NOT* conditional upon those dentries being > > hashed, right? > > Isn't this handled by d_splice_alias() already, by moving the old dentry to the > new name? ... which means that if somebody without the key chdirs into subdirectory they only see by encrypted name and waits for proper owner to look it up, they suddenly see it by _un_encrypted name. Or does O_PATH open, for that matter, so exec permissions on that thing are not required.