Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp7528687rwd; Tue, 6 Jun 2023 12:05:19 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7YV5e3Yr/ns+jcJvkwSmye7sJlgb2GjLWhlBaYuwEccFXYCHGM5kjSSd32NnnIxxgvkJnN X-Received: by 2002:a92:d44f:0:b0:33d:825c:3266 with SMTP id r15-20020a92d44f000000b0033d825c3266mr4195158ilm.1.1686078318753; Tue, 06 Jun 2023 12:05:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686078318; cv=none; d=google.com; s=arc-20160816; b=PGme3Nb90qbDWnFPb7Ie/XB3MM/7tyACLnbbQeF3h3aKUM4R2nT/ge6vORHtc7oiPr 99i/GNiw2IDwFFoXGLoWUJkQUyXMkk25MH49+qvC3r3FWB7//M3GB60qdcUkdkMPzZK3 CadNfxrqbr76KdidHyKgKAemgqK8K/gZuVtfDzAxm48aAzWq+rEo36g1PoQfahGpNP9t 1K7ro6IQV0Ru/I7EdeWOdwrXYqpaaReHaUMUFgDASg+nb6YGkziuCoVz4JEFBdQwiM9Q Lsitcu3KALsCfPaSU8HhaIBAS1CKBodr+kb7GBzHCfyMp3kK9Dh3dVTBQwPA9HG7Kvxm 65Eg== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=p+0nLSoJG17KKuiydwKjkEWK72qSSTBX227sDUKnkMI=; b=jmx1SLhPBC5iBxXuOMMNuxzwi4kBDMgO7U6r85M/18wXYn+BzOEyl/eawAIxBYtXUx 3QrJc94jneyUPtYKp0W8GJiUpVkrZ1Rm3VwqqH0oYzLxyojzI8rqhBreOE62aZOsO9LJ 5JD3SfVitzJsEzro4mfTfZjZ7K5/AYVfTPXhzcGGYhqfSSHYUjq6g8e8tNF1EXwKYVnq UD+ITl+fCQvjEezDTtLbK9wlc17MiNkCYxbSe75xpfWEHxh67QeJGdOLfDlG/RLyfznu wZJEK8kdqv4kRIrvNcETKCnMV6+ip3SnDfXsfWpMVId1QnouQ3wRZrxEJJMLyf4IrRwP VK6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=K8PQtgjH; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c6-20020a6566c6000000b0052c87a89084si7471350pgw.374.2023.06.06.12.04.58; Tue, 06 Jun 2023 12:05:18 -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=@infradead.org header.s=bombadil.20210309 header.b=K8PQtgjH; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233158AbjFFSqH (ORCPT + 99 others); Tue, 6 Jun 2023 14:46:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55166 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233789AbjFFSqF (ORCPT ); Tue, 6 Jun 2023 14:46:05 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 83BE810CB; Tue, 6 Jun 2023 11:46:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Sender:In-Reply-To: Content-Transfer-Encoding:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description; bh=p+0nLSoJG17KKuiydwKjkEWK72qSSTBX227sDUKnkMI=; b=K8PQtgjHzFM8DsR8pdTrGnhVD2 z/OYfEVC48yKut8wf6Nopa2FNs7aMyMSR1EpbfpI/r54+qbSB2Pw4GxeQxJaNXQClit6dBePXMvbv SiWVAkmZuBZcHKLlad7NRqmVtc6k/3LvY2Q0oei4CWLvLZr82F+ikRzih/Z3KirO1b6M7PK87axeR 8bLPwahj/gRcWyWZHFvv23YgeMUyO7WGZXM6onH+v9iuibrPt52d1Rr4t/nZrIVOCk91CCVtUn5rd 0588ctSoNdj4cxSLilu1LKMGFtHsF5072LwMPxAm5kh/Ul0folqF4paXyeLdgqTAnQfnd9cqBxR9G 2Ye0363g==; Received: from mcgrof by bombadil.infradead.org with local (Exim 4.96 #2 (Red Hat Linux)) id 1q6bgf-002nx4-2g; Tue, 06 Jun 2023 18:45:45 +0000 Date: Tue, 6 Jun 2023 11:45:45 -0700 From: Luis Chamberlain To: Paul Moore Cc: keescook@chromium.org, yzaikin@google.com, dhowells@redhat.com, jarkko@kernel.org, jmorris@namei.org, serge@hallyn.com, j.granados@samsung.com, brauner@kernel.org, ebiederm@xmission.com, patches@lists.linux.dev, linux-fsdevel@vger.kernel.org, keyrings@vger.kernel.org, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] sysctl: move security keys sysctl registration to its own file Message-ID: References: <20230530232914.3689712-1-mcgrof@kernel.org> <20230530232914.3689712-3-mcgrof@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Sender: Luis Chamberlain X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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 Wed, May 31, 2023 at 05:20:46PM -0400, Paul Moore wrote: > On Tue, May 30, 2023 at 7:29 PM Luis Chamberlain wrote: > > > > The security keys sysctls are already declared on its own file, > > just move the sysctl registration to its own file to help avoid > > merge conflicts on sysctls.c, and help with clearing up sysctl.c > > further. > > > > This creates a small penalty of 23 bytes: > > > > ./scripts/bloat-o-meter vmlinux.1 vmlinux.2 > > add/remove: 2/0 grow/shrink: 0/1 up/down: 49/-26 (23) > > Function old new delta > > init_security_keys_sysctls - 33 +33 > > __pfx_init_security_keys_sysctls - 16 +16 > > sysctl_init_bases 85 59 -26 > > Total: Before=21256937, After=21256960, chg +0.00% > > > > But soon we'll be saving tons of bytes anyway, as we modify the > > sysctl registrations to use ARRAY_SIZE and so we get rid of all the > > empty array elements so let's just clean this up now. > > > > Signed-off-by: Luis Chamberlain > > --- > > include/linux/key.h | 3 --- > > kernel/sysctl.c | 4 ---- > > security/keys/sysctl.c | 7 +++++++ > > 3 files changed, 7 insertions(+), 7 deletions(-) > > Ultimately I'll leave the ACK to David or Jarkko, but this looks > reasonable to me. > > Reviewed-by: Paul Moore I've queued this onto sysctl-next as I haven't seen any complaints. I can drop it if there are complaints or regressions reported by folks on linux-next. Luis