Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp575245pxa; Thu, 27 Aug 2020 09:50:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx0/4RIjSDZA2i8oUgr3OSxfPhPZuORaoDx4HGMi84eiUSyAbBiwwoEY7Tt5P+B59BBE9x6 X-Received: by 2002:a17:906:c1d8:: with SMTP id bw24mr21549005ejb.91.1598547003023; Thu, 27 Aug 2020 09:50:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598547003; cv=none; d=google.com; s=arc-20160816; b=EzCM5QxJ4F8+E42CjZJH/Pdb+O4rznNEkISJexRsj9XaWT2PNlshSPAcFrtTJayV0V w9PcxiAMULtAluOKtvVjTUp3lzmpcO9yWcG9f5cDIz23n4hk6h4fJ1/NXENJFcfTBGzH Q5g5WxkbSeu3mBuOyw4v2u2ZU7bj5SewWTOeMGpSnQTK5Vu9wM6UyxlDerrTcXbJOgc2 41n9Pupmqq/j70dk0xPvsBbdaG1qfIZ1WMRVU8k0i+YEOPaS/dmf38UBh6MIMGB2IceW Q0E5+VkQI9acMlU5Rk+U8RTWnr8dxrbYazkr9SEiGkShnHuO9XiAMI4MBspt/fDvIgqQ 1m9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=/xGpOY5v3rYoFqTd5QFQEPCm9lS0N53r2cL3cEdKtPw=; b=flq66gjZjuok5oPx3yVhXnAHwu3oh2z2VYMRD0yhtupDBf8tdSBN4a+RVlmjmY07Ul JFZW3qFrLfIxWHutMolQSx/xQkLk8PWq03jIySJ2nzwjYiDAHKGrh28YjDsHt0CxtgZA EmskmMNyVldcshYNjPG1KM6DAWAgBCftJfn8qnulELm+38RI/joo8VaOMs6U0OqHbTMn i6IIGl+XlqLA6nf0he/hsepG6UmXJcIDx9rdaX7WWstcL8ZKo1+4MjowQqrbt69gh8Re Je0ysm/mD/7yQ6cN0On/49FSwJ4kK2lrk75uNx46ft8ErOiHlss6sRbUFOfvKhvjkwdS D91g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=mx+FJh+q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u15si1696645ejx.53.2020.08.27.09.49.39; Thu, 27 Aug 2020 09:50:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=mx+FJh+q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727034AbgH0QtG (ORCPT + 99 others); Thu, 27 Aug 2020 12:49:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51814 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726938AbgH0QtC (ORCPT ); Thu, 27 Aug 2020 12:49:02 -0400 Received: from mail-io1-xd43.google.com (mail-io1-xd43.google.com [IPv6:2607:f8b0:4864:20::d43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0F567C06121B for ; Thu, 27 Aug 2020 09:49:02 -0700 (PDT) Received: by mail-io1-xd43.google.com with SMTP id g14so6556777iom.0 for ; Thu, 27 Aug 2020 09:49:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=/xGpOY5v3rYoFqTd5QFQEPCm9lS0N53r2cL3cEdKtPw=; b=mx+FJh+qUi0eylsu7L5BZKzqa0QvffqcQd1piV8hJ6N9eT9+EcGAtY/vTkjhlPEDuW i4bJW+Hw5vkXE3QOjP00yzvGOx8NdmAa5xDpJxtAH1b5y/tb+6lcmCXNX04NRc+y3ZGO Tz4AfmmZltBKDUOJrlkUu4MwuW1406+6ICT01nQWL7eOtK1K7beaV3+fgjuvh9xLhMGb 1rdiHTd4Wm9XHDp5nDwcQsgX1umcQciurhny3pj2qPHE/IeYwdyvZVs437s79yJd4Pd1 qQ4F0jgXjb7kjVvvsCi6v5HMTX/eP5Xw6c88+9OJjIQmO9nUDfZHpZ+yJF9iMaD1WVC5 Sovw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=/xGpOY5v3rYoFqTd5QFQEPCm9lS0N53r2cL3cEdKtPw=; b=sFCHw6VKyPZWC4Dyr9b3ZaNU5o8Lg8AevcItSU6xTfRK4zvC7s6DugsvGlJVy2vr3E rKPysfNEZSL0wLynGUSdfW9BB1o3qmp5bVaNUaNKYtH3/uLP3cZz5Vz/TZg11wKK8dKY of6kPPZFs8RbPrDbEh8dMuUP82Mj38F593Dzh2q/OADB/1ey/fD/WV7PvtIa1/OgMZQz UC51HxxBb0TqEnDHECIKqHBJ5rG5qFGi4JsWn/pGS7w9mVSiD+0EGXA79RR5OrEa4JG4 lFSXOjpswvWwIMBXG5oTSO2qfTrQZm9NGx6yUUhpqvI/h2wpf1l43/82vsVozcPzfdgc wHwA== X-Gm-Message-State: AOAM5331MeSv3d8qk4o4+KTe1YoMQaOMCNr2qPQD45DBBu12rE9rj0xg FmkmixUhv9pK3qWCAtniK0ZWog== X-Received: by 2002:a5d:924c:: with SMTP id e12mr17853974iol.28.1598546940951; Thu, 27 Aug 2020 09:49:00 -0700 (PDT) Received: from google.com ([2601:285:8380:9270::f2a2]) by smtp.gmail.com with ESMTPSA id 187sm1430125iow.34.2020.08.27.09.48.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Aug 2020 09:49:00 -0700 (PDT) Date: Thu, 27 Aug 2020 10:48:57 -0600 From: Ross Zwisler To: Aleksa Sarai Cc: Al Viro , linux-kernel@vger.kernel.org, Mattias Nissler , Andrew Morton , Benjamin Gordon , David Howells , Dmitry Torokhov , Jesse Barnes , linux-fsdevel@vger.kernel.org, linux-kselftest@vger.kernel.org, Matthew Wilcox , Micah Morton , Raul Rangel , Shuah Khan Subject: Re: [PATCH v8 1/2] Add a "nosymfollow" mount option. Message-ID: <20200827164857.GA414369@google.com> References: <20200819164317.637421-1-zwisler@google.com> <20200826204819.GA4414@google.com> <20200827015940.GY1236603@ZenIV.linux.org.uk> <20200827154139.vwuflrlvj257krnw@yavin.dot.cyphar.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200827154139.vwuflrlvj257krnw@yavin.dot.cyphar.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 28, 2020 at 01:41:39AM +1000, Aleksa Sarai wrote: > On 2020-08-27, Al Viro wrote: > > On Wed, Aug 26, 2020 at 02:48:19PM -0600, Ross Zwisler wrote: > > > > > Al, now that the changes to fs/namei.c have landed and we're past the merge > > > window for v5.9, what are your thoughts on this patch and the associated test? > > > > Humm... should that be nd->path.mnt->mnt_flags or link->mnt->mnt_flags? > > Usually it's the same thing, but they might differ. IOW, is that about the > > directory we'd found it in, or is it about the link itself? > > Now that you mention it, I think link->mnt->mnt_flags makes more sense. > The restriction should apply in the context of whatever filesystem > contains the symlink, and that would matches FreeBSD's semantics (at > least as far as I can tell from a quick look at sys/kern/vfs_lookup.c). Yep, changing this to link->mnt->mnt_flags makes sense to me, as you're right that we care about the link itself and not the link's parent directory. Thank you for the review, and I'll send out v9 momentarily.