Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2730150rwb; Thu, 29 Sep 2022 14:19:12 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4DZHv6zbAUQRiwOFd3DbDf6SblI67pRGG48Fx7j/Hr1GZn69pzDqTTSbQ2Rbt9K9Oc2tGp X-Received: by 2002:a17:907:708:b0:77e:ff47:34b1 with SMTP id xb8-20020a170907070800b0077eff4734b1mr3962895ejb.493.1664486352509; Thu, 29 Sep 2022 14:19:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664486352; cv=none; d=google.com; s=arc-20160816; b=GGrirb+F37tcIYskzVGHJ7S45CEasoHymknPhU0CqVGOk45vlflGIvegnEhaPZBgsk IVC2i6G+QQvTznRqsZFAnUPv3+tXU1C1eMCvgXmEQRhaZ3K7rfxrMCPKRjHI34oCsso7 /I3XnPU1VFu6AGRdH69lyyd9KqrdIUIyijA75btHHn69Ee4lYFJXdUa2LVWiAsN+NG6s YhFe08VcdSgH3f0Kiw2DLJHInjShIH5CsbN6U8f14LK491bQ3d23YR5wtWqUK951xdQ0 cM71b8DgQjqi5LxlRruvFtm1LLOMjhp4h95C9MEwHlOs4YVgSA5lvr9Z1/C7aEEArRpQ oUFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=HD+AV33GDQnjyFVXDDTE0Wqisrv2J294cmXf6Dxy6WA=; b=BBa7I3E+xpXdn/XquIYdSXWeTBLv659Jl69jOARb3NJi1098JFvbRGUWsULTUg7eoY bOFjiynMblbQmQJrbiJ5ru6hauHd1l6UbTHN2kSqsbPYENtv2iE4qtq0+2sJiuoXXrOo fMtEl4Z2QEfAv8vWhk7F5bYWzEpnGTnG8WyrMTbFncRGp3QZ6DEHtUPyM5UkwYdA7sn9 NXHh5PzwuTO4G0+N12rb/TZvf4iY1bqJg4WgM+oqeSdgd0m6aEelMXOHsd2xGhJl3hlL OaZmcK1UdgiEgYRSvF68jz70c/qDMgDmyoFwCZbarNSXuoBjaY7gEXer1R2NycPgDL7x 8m1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=Mb4+284u; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z6-20020a05640235c600b0044816be3ec8si606384edc.435.2022.09.29.14.18.46; Thu, 29 Sep 2022 14:19:12 -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-foundation.org header.s=google header.b=Mb4+284u; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229584AbiI2VOT (ORCPT + 99 others); Thu, 29 Sep 2022 17:14:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55878 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229448AbiI2VOQ (ORCPT ); Thu, 29 Sep 2022 17:14:16 -0400 Received: from mail-oa1-x2c.google.com (mail-oa1-x2c.google.com [IPv6:2001:4860:4864:20::2c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B6B981C4824 for ; Thu, 29 Sep 2022 14:14:15 -0700 (PDT) Received: by mail-oa1-x2c.google.com with SMTP id 586e51a60fabf-11e9a7135easo3314807fac.6 for ; Thu, 29 Sep 2022 14:14:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=HD+AV33GDQnjyFVXDDTE0Wqisrv2J294cmXf6Dxy6WA=; b=Mb4+284uLNUfBJYApUvYWsjljBC6bGq9LhZBknmcfnWo1eaLky/ISSJhhaOjFstQ69 EESn70/zMp+J3xBefr/MbuA5Vr+rEcTZX0gRmjfWULwdYczcZ2lKlPS4sUxlxvXW+hVd 44eOaUNpMrVHDUEsMaQkQuKx/ovT0Z5ZK2d3c= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=HD+AV33GDQnjyFVXDDTE0Wqisrv2J294cmXf6Dxy6WA=; b=TlujCmbKoKISknf78WEDzHCj/g36agbKICv1ixmM1xB6e2sJ0l8oTNyJrHTbv6HPgo XVKCPej+qVcLusODEMpVlrywEsSOfkrEtMwPjOWglQxO+7neQKaLTJZFJtYPXaeJEORU RgMWjpBdaQ7jIfSPxw9aeZ62txPC3/B5BtCkhDgdkx7thU5nh6GTyqmZIaCGpDE+eQZg aaFTl8jrXY7Mf6E/H3AgdTKR2OvQYPBcpNfcHkaSHRsDcqk6PEyAOxjDy6LxGfl+17ZZ s3RDKM8WdnSQchJPHVGjoYruKE0OJPVt65MUaPHjvy156O63KnJgnJ412y+0jEdl8Jcc Sd9g== X-Gm-Message-State: ACrzQf1lxLxhQzZQjQ6Q0ezdq3pVhPk4955GwpsxfNDokZve5O4fddrN 6pP6udurpQQcSAlp23aCi7oAA34fEkVEmw== X-Received: by 2002:a05:6870:14cf:b0:12d:392b:1d9b with SMTP id l15-20020a05687014cf00b0012d392b1d9bmr2929101oab.38.1664486054427; Thu, 29 Sep 2022 14:14:14 -0700 (PDT) Received: from mail-oo1-f41.google.com (mail-oo1-f41.google.com. [209.85.161.41]) by smtp.gmail.com with ESMTPSA id d62-20020a9d2944000000b0065818e6fbdasm179973otb.24.2022.09.29.14.14.13 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 29 Sep 2022 14:14:13 -0700 (PDT) Received: by mail-oo1-f41.google.com with SMTP id c22-20020a4a4f16000000b00474a44441c8so975017oob.7 for ; Thu, 29 Sep 2022 14:14:13 -0700 (PDT) X-Received: by 2002:a05:6820:1992:b0:475:c2c0:3f92 with SMTP id bp18-20020a056820199200b00475c2c03f92mr2154395oob.96.1664486053314; Thu, 29 Sep 2022 14:14:13 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Linus Torvalds Date: Thu, 29 Sep 2022 14:13:57 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 3/4] proc: Point /proc/net at /proc/thread-self/net instead of /proc/self/net To: Al Viro Cc: David Laight , "linux-kernel@vger.kernel.org" , "netdev@vger.kernel.org" , "Eric W. Biederman" , "Serge E. Hallyn" Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=no 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 12:34 PM Al Viro wrote: > > Apparmor takes mount+dentry and turns that into pathname. Then acts > upon the resulting string. *AFTER* the original had been resolved. Ok. So it would have to act like a bind mount. Which is probably not too bad. In fact, maybe it would be ok for this to act like a hardlink and just fill in the inode - not safe for a filesystem in general due to the whole rename loop issue, but for /proc it might be fine? Linus