Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp323157ybm; Fri, 29 May 2020 00:43:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy1tz8/s9v45DkQswk7dFtcx0MPFlqjok+HGbqdPT+oLPPzMgFSdZHht0PcGtELOM01F2Vt X-Received: by 2002:a17:906:454a:: with SMTP id s10mr6438242ejq.112.1590738228024; Fri, 29 May 2020 00:43:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590738228; cv=none; d=google.com; s=arc-20160816; b=HuHfQIoSCzkNuD/62INNELjKN6QznfQ1FMqnW4+TaejJxKXBuQGfKpaVC12bGCUB2Q EPcU6U5VFyqPMJfLy/1JfR5W0nWGty6WGTXbc+knFQMsPQNOWXVp5RmUOhkpzneQHmu1 SghCmgOw1a2zUWB41fGzKjI+d4SvyLCqNwNE96Qhz9TgApHc3CryyV+6rgyutT9lOpJS aPo4gQJNy8UITyKEGwpnI6qJeirkjYvVaxRpdKC0KljK2zO5CA/34GqiotIyFEqteP0q fhlIa+jstR4xG0oK7UTprgZr1ZY9oU45ccRYsQhTn12g+xvJY/SjSjCpGBbMt3kNmNFb M4hw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=1PG5LVb0n4wOO6VZREoyBILeBAzco+IYNIeDXsX/FzY=; b=dKHUlu+DDgQQLSEDefkBjj3bLurEnxUKBrVnHotNe90nUPXrBBZQptvFAXI17XvcCC O++3chCHcUxNqLgc98M3Y9Dwt0n316LiMOXymCp82VfnOLLFRJCOtwOdiigJC1eAt9Jj mRGQuq9vKy89KmLeATA6wTJj13lcyYX6aVSHWGrYKnjhZTNlYQm+MabRJIWB2UlmdwaC ngO67kECVeq5FN3mhJhsIG5vlz/4fJJ8zVQznpekLj6zxZ3MoObkDsXJgzMidRWxpKbf zmIbbvCt00hyTQivyzkOOxROtp1357keBWKGFpkCdayr2qgKHXSoxVpVbY2tc4A3BiRI 5pfg== ARC-Authentication-Results: i=1; mx.google.com; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z6si5066900eju.289.2020.05.29.00.43.25; Fri, 29 May 2020 00:43:48 -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; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726928AbgE2Hla (ORCPT + 99 others); Fri, 29 May 2020 03:41:30 -0400 Received: from mail-pl1-f194.google.com ([209.85.214.194]:33082 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726579AbgE2Hl2 (ORCPT ); Fri, 29 May 2020 03:41:28 -0400 Received: by mail-pl1-f194.google.com with SMTP id t7so776943plr.0 for ; Fri, 29 May 2020 00:41:27 -0700 (PDT) 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=1PG5LVb0n4wOO6VZREoyBILeBAzco+IYNIeDXsX/FzY=; b=R2e9F5rxEHDkQcp9lRtm6/0ZWEpmBXeCLjTSYq2fyAeuTxqS5XjGgo3VGGtxNcQLHZ Q2AczsBC3RYYfVZaEcrISI5KyDopiTbTjQ3YQbIw2hGclJhdLTvAu/+ZEZbtdYrtG336 vH9EKW/Kb0M/4Ypa/13XU7J25ewYRZuXzZnM/zG8b7owM/8+3ULJH98YbXqZCrhM0kKu lAbBFeFJNJ6kCKH8KjEC43K4/XLPSfKGF01F96hk8+AJRG/k3V9izs5j5akzQUKY9Nm+ 9zSURA+1c0M7IO3KAz4uN3l7QBo1aSavAndbQO8Ihindi1rXbskC3VjpmtzGSzoE3sY8 O3/g== X-Gm-Message-State: AOAM533M1JmqsAM/Oiixi4dnUTM/7ut1AR6q1lWDLti2pa+oPLppLHmp UktjbJ99a3JsROeAo063iGM= X-Received: by 2002:a17:90a:db0c:: with SMTP id g12mr7872171pjv.5.1590738086768; Fri, 29 May 2020 00:41:26 -0700 (PDT) Received: from 42.do-not-panic.com (42.do-not-panic.com. [157.230.128.187]) by smtp.gmail.com with ESMTPSA id q21sm919935pfn.209.2020.05.29.00.41.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 May 2020 00:41:25 -0700 (PDT) Received: by 42.do-not-panic.com (Postfix, from userid 1000) id 13BC8423BF; Fri, 29 May 2020 07:41:11 +0000 (UTC) From: Luis Chamberlain To: keescook@chromium.org, yzaikin@google.com, nixiaoming@huawei.com, ebiederm@xmission.com, axboe@kernel.dk, clemens@ladisch.de, arnd@arndb.de, gregkh@linuxfoundation.org, jani.nikula@linux.intel.com, joonas.lahtinen@linux.intel.com, rodrigo.vivi@intel.com, airlied@linux.ie, daniel@ffwll.ch, benh@kernel.crashing.org, rdna@fb.com, viro@zeniv.linux.org.uk, mark@fasheh.com, jlbec@evilplan.org, joseph.qi@linux.alibaba.com, vbabka@suse.cz, sfr@canb.auug.org.au, jack@suse.cz, amir73il@gmail.com, rafael@kernel.org, tytso@mit.edu Cc: julia.lawall@lip6.fr, akpm@linux-foundation.org, intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linuxppc-dev@lists.ozlabs.org, ocfs2-devel@oss.oracle.com, linux-kernel@vger.kernel.org, Luis Chamberlain Subject: [PATCH 13/13] fs: move binfmt_misc sysctl to its own file Date: Fri, 29 May 2020 07:41:08 +0000 Message-Id: <20200529074108.16928-14-mcgrof@kernel.org> X-Mailer: git-send-email 2.23.0.rc1 In-Reply-To: <20200529074108.16928-1-mcgrof@kernel.org> References: <20200529074108.16928-1-mcgrof@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This moves the binfmt_misc sysctl to its own file to help remove clutter from kernel/sysctl.c. Signed-off-by: Luis Chamberlain --- fs/binfmt_misc.c | 1 + kernel/sysctl.c | 7 ------- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/fs/binfmt_misc.c b/fs/binfmt_misc.c index f69a043f562b..656b3f5f3bbf 100644 --- a/fs/binfmt_misc.c +++ b/fs/binfmt_misc.c @@ -821,6 +821,7 @@ static int __init init_misc_binfmt(void) int err = register_filesystem(&bm_fs_type); if (!err) insert_binfmt(&misc_format); + register_sysctl_empty_subdir("fs", "binfmt_misc"); return err; } diff --git a/kernel/sysctl.c b/kernel/sysctl.c index 460532cd5ac8..7714e7b476c2 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c @@ -3042,13 +3042,6 @@ static struct ctl_table fs_table[] = { .extra1 = SYSCTL_ZERO, .extra2 = SYSCTL_TWO, }, -#if defined(CONFIG_BINFMT_MISC) || defined(CONFIG_BINFMT_MISC_MODULE) - { - .procname = "binfmt_misc", - .mode = 0555, - .child = sysctl_mount_point, - }, -#endif { .procname = "pipe-max-size", .data = &pipe_max_size, -- 2.26.2