Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2622251rwb; Thu, 29 Sep 2022 12:38:53 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6u5XYROhV1VWRgE2hgDH9T6CDtQl6SZGKzpA8Cv5azpoq6fI4/SNGAq0w00D7ib6WLQ/d/ X-Received: by 2002:a17:907:7d8f:b0:782:3481:3d0d with SMTP id oz15-20020a1709077d8f00b0078234813d0dmr3965702ejc.74.1664480333342; Thu, 29 Sep 2022 12:38:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664480333; cv=none; d=google.com; s=arc-20160816; b=KM858o7jrd4kgc6WmYFoiloUZWpKS5zHBFq3ufQP61jRsuy0OSD/ILdV13DFUUHbxS uLUATxUHPrV1S6sDQKB7OrmaayBQI7JzNKfm1ZwnAS808Kr1fSGlgL/heb/3JUSlOGp6 z8qWUqxU2bqxauXqvU4P05Iw3DeVn8gBxR1ViHVBJScv/TbzmsYIG3kcGrAA3Ks0U5Yo CWgRyAR4rHc0vlL7tuIIxOnJcH3CZ9GE3/lEvLBzkPjx6n+ugODC2WawNGYFNo2L44iD aGf14AGvMZ11IvqxqwgtZXHFQoQWA/JDi8cwpMApMGeHD9ydsIaNWlo940cKMN4ue3k3 sOFw== 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=43Bm+bBoRaRR+2CN2BJpeoxNTszzj/pxlsTL7mDcESU=; b=YiVvUTow27WVXwzZQlhzagdFC+F9IbcsjbIHz8xWWrqWodAKHkgJR7aaymDCV9Ud45 xRfrnBP7r5miyfr4FnZekFXAPSxiqT7Mk1dFBe1nbbHSSZUus229eAq0hE+s3T17U2bK KFFq5Oi9mxt8Ri9hznAQ/E2fwN9Kt/FNUeL8hYA+H8HBweMpVUVLTamgxNw+lqJVGU8A zlIOr5JstXdIdoyHLitdc1sh9YaSE2PCIMn8Njim4J2RVLeBYmKZI08o2lIizlwsOG2Y 7uvW/AU5V/BzPRhdlIR0jRIyUQMK8G3FhRMd98S8l47YMhAS+oBw1prte0hFstUQRcCj RnIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.org.uk header.s=zeniv-20220401 header.b=GVUM5KR6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zeniv.linux.org.uk Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y19-20020a056402271300b004548a74553esi377238edd.445.2022.09.29.12.38.28; Thu, 29 Sep 2022 12:38:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.org.uk header.s=zeniv-20220401 header.b=GVUM5KR6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zeniv.linux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229543AbiI2Suu (ORCPT + 99 others); Thu, 29 Sep 2022 14:50:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42242 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229457AbiI2Suq (ORCPT ); Thu, 29 Sep 2022 14:50:46 -0400 Received: from zeniv.linux.org.uk (zeniv.linux.org.uk [IPv6:2a03:a000:7:0:5054:ff:fe1c:15ff]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 330C61288AA; Thu, 29 Sep 2022 11:50:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=linux.org.uk; s=zeniv-20220401; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=43Bm+bBoRaRR+2CN2BJpeoxNTszzj/pxlsTL7mDcESU=; b=GVUM5KR6fHt9XdiDoVJrZqfcoL r/e9D/TQUE+AJR8c/fQm15wrRx52nFHosHwTIUUqC5+j4kIKz2gdg9dhm5XSwR/a1bmFZRmjdTo5i cTjumOhhiHJI61pA7uN+7Ll7xSVF1rCEnP9tmfmN6v4DNBx1Dqsr22cQGvKHV7AMQPw7U+ZzHLOme Aer4VBauT1WxQVqR4ufIOwN8o9rSnG2IyFt1Z14DT+9tDhqKYizE3y/lWlqOH+FcH1FKByMg4FgfG 674TTQN/fn1dWmyDCZzlYmdS4OcB7wge5HZDs0fM6+y/OdT17zg4dIUGhNq+8UiCO3VT5pmoNo+H3 /ZQ/agEg==; Received: from viro by zeniv.linux.org.uk with local (Exim 4.96 #2 (Red Hat Linux)) id 1odycG-0053z2-1i; Thu, 29 Sep 2022 18:50:36 +0000 Date: Thu, 29 Sep 2022 19:50:36 +0100 From: Al Viro To: Linus Torvalds Cc: David Laight , "linux-kernel@vger.kernel.org" , "netdev@vger.kernel.org" , "Eric W. Biederman" , "Serge E. Hallyn" Subject: Re: [PATCH 3/4] proc: Point /proc/net at /proc/thread-self/net instead of /proc/self/net Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: Al Viro X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 29, 2022 at 11:21:36AM -0700, Linus Torvalds wrote: > On Thu, Sep 29, 2022 at 8:22 AM David Laight wrote: > > > > This was applied and then reverted by Linus (I can't find anything > > in the LKML archive) - see git show 155134fef - because of > > issues with apparmor and dhclient. > > lkml archive link: > > https://lore.kernel.org/all/CADDKRnDD_W5yJLo2otWXH8oEgmGdMP0N_p7wenBQbh17xKGZJg@mail.gmail.com/ > > in case anybody cares. > > I wonder if the fix is to replace the symlink with a hardcoded lookup > (ie basically make it *act* like a hardlink - we don't really support > hardlinked directories, but we could basically fake the lookup in > proc). Since the problem was AppArmor reacting to the name in the > symlink. > > Al added the participants so that he can say "hell no". What do you mean? Lookup on "net" in /proc returning what, exactly? What would that dentry have for ->d_parent?