Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2680079pxb; Thu, 11 Feb 2021 20:47:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJwFY3+1fwIYzuAdmiuUldxIke75YAnPSeiZEZPj8j16HDRViM7bMbXB9G/OY1EXbvxLvYyd X-Received: by 2002:a17:906:3006:: with SMTP id 6mr1197988ejz.448.1613105245274; Thu, 11 Feb 2021 20:47:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613105245; cv=none; d=google.com; s=arc-20160816; b=ouVFCemqxTh87WjkMQR1TlPLrOo5C2dz/KmHEd82wShk/5BJiwSV/O3ZcMwY0n/IPf oBoA0t+kuC/3zN6a7YIzg6liKba8T4q4gWOK9r/tqsLZG8A/T7GY3F3XqnP4YGjUzkyx mxkuymYU1qflHSq8uOEk7tX37YJrHPeOapRBoSG34NhaQ9TzZOayB7XnUOpvFagX7+el gHrLdZYw+5Y4oWyRtE6FDTleIDcMZsn7PBwrSKdP4VJI4e5ePoWVZRU0ZdXrR5WyrNGm 6owfcvVPAIXbz+nEpLQWiBR3gxUr1gecnl9hV5KuSOSqc4Dg1XHYF+bnrjXD9HwT0Svw Lc1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=kOCq94xjVzI4ceYxRuWCABPovXysMtiBjdG9BO6ZZlk=; b=p3/raANpF4hvHHzJX9UVKmF5JIeB98LBpurzM1WOb8HWinEt8H6YpZmb0bP0WalUzI OMnrxbhsb4cz2wWy0kI0nTDbmylLptHFD5lcRzMvxdhzIFZt1EMZPoYG9/Q99sEvdDoX xal2UsJnh9dCvzlfjW2BcwmHG160V+VypKoPy06OYvKMVXJHYCTsJg4VpXOFzO+3P1oC 7Ks+R8aTtzIQSS9L/4ckxARj0tCZoazwJYjfT+PKs+NoTUus3RosRzBsfo46TZ2zQKeG ZFJ1xBRqb+Ef3Rh7YfZtzRLTwceFLkllknk0UyzUk6On0ood6lJ/fXWxs/Rvtb0kgbbb s4WQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=YFLT2F+J; 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=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lu6si5241801ejb.414.2021.02.11.20.47.02; Thu, 11 Feb 2021 20:47:25 -0800 (PST) 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=@chromium.org header.s=google header.b=YFLT2F+J; 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=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229740AbhBLEqG (ORCPT + 99 others); Thu, 11 Feb 2021 23:46:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54236 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229457AbhBLEqE (ORCPT ); Thu, 11 Feb 2021 23:46:04 -0500 Received: from mail-pg1-x534.google.com (mail-pg1-x534.google.com [IPv6:2607:f8b0:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 753B6C06178A for ; Thu, 11 Feb 2021 20:44:48 -0800 (PST) Received: by mail-pg1-x534.google.com with SMTP id b21so5457235pgk.7 for ; Thu, 11 Feb 2021 20:44:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=kOCq94xjVzI4ceYxRuWCABPovXysMtiBjdG9BO6ZZlk=; b=YFLT2F+J3RvMBDSiUHuypueB0DK/XGg7G87wgW+rPVjaHKPEEMXI6pHivuc83P91bE kMLIh6M0HtmB+EqZNhXx8eoQnJCEoy1eUXnUxMxjpVTr74I6Q4FoQDJQkOySytnwuLdy R55uL0VGEYvuO4NVzPP+pMQ1ef5edLP85FnNk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=kOCq94xjVzI4ceYxRuWCABPovXysMtiBjdG9BO6ZZlk=; b=i7LLjDNlUYgxi0V+60eCIGArryTvfi0ba+/i6bnaFKxVUWz+FyjWel16zAnz0q3of7 +7kCbbdDWXPNb3agEbKhRKtaN8EWCpjCCOQpIHpat66iCZMzgiERG5rRgMOiBSp0AjNr +RkhwxFA5F+gUxxSfb+6BTlM+q2dviFKV8V2zl9bEJAsC8A3y8kDIbulL4nYuRX+1PSB AiBadg19RNDB9MFLtsCNNJwEYoAOxwfuv5X7aesSLnY2JLqnz6hLz7QFPTmjQP1ljd5L eqN3NImDXvQM7bVYu6GdDy0wiF6+7X2PyzhvtSeHdix0W0gtbMzEXqzW7s6E7vzoxPlx qQvA== X-Gm-Message-State: AOAM530day6QB6+x01Ogp9CtrCIi2iosuXQqWExlVI7mqqgalbtLu1ND +3xxgy12/fQJQMnBANwrt5FB4A== X-Received: by 2002:a62:43:0:b029:1cd:2de2:5a24 with SMTP id 64-20020a6200430000b02901cd2de25a24mr1403879pfa.27.1613105088055; Thu, 11 Feb 2021 20:44:48 -0800 (PST) Received: from drinkcat2.tpe.corp.google.com ([2401:fa00:1:b:a453:d6cd:41b9:5925]) by smtp.gmail.com with ESMTPSA id 25sm7298904pfh.199.2021.02.11.20.44.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Feb 2021 20:44:47 -0800 (PST) From: Nicolas Boichat To: "Darrick J . Wong" Cc: Alexander Viro , Ian Lance Taylor , Luis Lozano , Greg KH , Dave Chinner , Nicolas Boichat , Alexey Dobriyan , Alexey Gladkov , Christian Brauner , "Eric W. Biederman" , Kees Cook , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/6] proc: Add FS_GENERATED_CONTENT to filesystem flags Date: Fri, 12 Feb 2021 12:44:01 +0800 Message-Id: <20210212124354.2.I89f693bbe7011553bfac5fedd88d2fc7398be61b@changeid> X-Mailer: git-send-email 2.30.0.478.g8a0d178c01-goog In-Reply-To: <20210212044405.4120619-1-drinkcat@chromium.org> References: <20210212044405.4120619-1-drinkcat@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org procfs content is generated at runtime. Signed-off-by: Nicolas Boichat --- fs/proc/root.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/proc/root.c b/fs/proc/root.c index c7e3b1350ef8..7ed715a0f807 100644 --- a/fs/proc/root.c +++ b/fs/proc/root.c @@ -282,7 +282,7 @@ static struct file_system_type proc_fs_type = { .init_fs_context = proc_init_fs_context, .parameters = proc_fs_parameters, .kill_sb = proc_kill_sb, - .fs_flags = FS_USERNS_MOUNT | FS_DISALLOW_NOTIFY_PERM, + .fs_flags = FS_USERNS_MOUNT | FS_DISALLOW_NOTIFY_PERM | FS_GENERATED_CONTENT, }; void __init proc_root_init(void) -- 2.30.0.478.g8a0d178c01-goog