Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp3015684rdb; Mon, 4 Dec 2023 14:12:55 -0800 (PST) X-Google-Smtp-Source: AGHT+IF43Bl/R1aSyl8n5Mm+KTtDsLUXxl/IaVhA5WjCKf5mMHgrHhp6SXOZ4u3mwVoAdZJJU0db X-Received: by 2002:a92:c609:0:b0:35d:6ea6:4cba with SMTP id p9-20020a92c609000000b0035d6ea64cbamr2853456ilm.2.1701727975460; Mon, 04 Dec 2023 14:12:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701727975; cv=none; d=google.com; s=arc-20160816; b=ZuILGlUqGGHUdjDr18AGKLXr52u62Ue745jBw9ak0NZNFtyjLxiSjE9st/0SmkLjRd me19/0awtuIxzreYxYIVYbZ/AAkGrCxmA7bopmgHiy18ozvLGKtrSO5UDOjtH6GZoAM6 XSb2SqAa9F3y8N8ZzPVpG+Dtz9QiWPIbHRBPQH4HJsG4OmJwfZbit8RqPiTUlW+RuED/ C4kxAu7GEBG42wVKu9rELwZADJxqiKQJR4tOktOxx/JXtA2nhrRrnvI5OK8IKTVL7Kga aioagFiI6Sah+jUBRRxy4VvBr9LjgF2yOkf5fdHvpnYm23Q8fwpV4IzBZ0Mt7XTcZOSP pv/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=z5w+w40k8reyqU3pjVynIeZmpGAhXy9mRn2YDUbDK6o=; fh=5AwoD1nwIkB4+OrhHRLytj2QW6BUNyOeqcoemuAb+N8=; b=luXTuus7+tQgF6Yab71GYDSZlAe1d5DdQGTf/ITm+SLWut0iRAoT5EFreP1w2oA/l2 G3ZinICn57d3G7WHrUQ7VIGNFNhea9ctOn93NITGprsCUgSGNzKTRMeMfHwDuyz/9cTu azd2fBG6s+yoADCLAM8e/u30mOStT6VtIjdFM7I4JgCEZw0lz0YnsNcIIhQvkRz+9NoE gNqcMJdIzEy3MYYk+5F7+P5rXD/HxmybQ0T9DrBcxXeXTxe7ocuTNiqs3BY7S5e4JreQ JbhCTE0eXFiARDaC4UiIKITkGPvF8Gv6octQeKo96H9gqP6GGRpQz3MOIFT2G7bypxBH cLHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=kZlZspSL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id z7-20020a63e107000000b005c5e2c15169si2501525pgh.737.2023.12.04.14.12.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 14:12:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=kZlZspSL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 5B882805A5CB; Mon, 4 Dec 2023 14:12:49 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231253AbjLDWMd (ORCPT + 99 others); Mon, 4 Dec 2023 17:12:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39046 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229556AbjLDWMc (ORCPT ); Mon, 4 Dec 2023 17:12:32 -0500 Received: from mail-pg1-x529.google.com (mail-pg1-x529.google.com [IPv6:2607:f8b0:4864:20::529]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3AB06107 for ; Mon, 4 Dec 2023 14:12:38 -0800 (PST) Received: by mail-pg1-x529.google.com with SMTP id 41be03b00d2f7-5c5f0e325a6so1628224a12.1 for ; Mon, 04 Dec 2023 14:12:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1701727958; x=1702332758; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=z5w+w40k8reyqU3pjVynIeZmpGAhXy9mRn2YDUbDK6o=; b=kZlZspSLgzRFo2AIXtG6F/y5aA8ezGQOCsKYoHAcJ1v2zCpqJbuMDedfbiBy2Tu9C4 xBMU8TyxnQa10i2a3GeTUsj8z8gBH5CsQc5+0e0MN03zF+Lw9pyPk9VdbFQ2ukoFbHyD BrYOBrSlcnLeWbKJmccJ3x7v8xeQbXe2+w3IA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701727958; x=1702332758; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=z5w+w40k8reyqU3pjVynIeZmpGAhXy9mRn2YDUbDK6o=; b=oo7ypMKdCA77NGqlNw658h2BBMOAaSGfbZnoJUivhnrXMvkyLSaZZCwYFTiW0VtNz7 oNUhZDSNgze5oWcmktmGHUgMwINxwuvfpm+11DcZs70T6Zmz1gNIPdPa5tPQtMLzI/sl UQGlAJqcqGiCnJc7RPXsgkWbIsXWO2Sf12IWyDYVuGNF4jP+HOr8yLmI/hY8h2mvsDwc ZhXcnzzvp8TURX6UHQsuDX4/dJNWMoPD3Sfz1p8ZvGF1WbPg0c74E0foQAA3k/Dm0lWt u+la96ifbR0KiFl0+BdLdom3to+eSyICa5qrS5LbLHtiwPa1IPqvX56EzCw9vx1QUQKj BrgA== X-Gm-Message-State: AOJu0YzwrYXsZFO7A2OYlIPKn0nxeHIPNQDz838rkYcRiRUtLzPX+23Z QPyfa1lHwg8Boe/1Yzx7i0E2szmkqCD0ofFm7Po= X-Received: by 2002:a17:902:b210:b0:1d0:6ffd:8346 with SMTP id t16-20020a170902b21000b001d06ffd8346mr1942760plr.81.1701727957671; Mon, 04 Dec 2023 14:12:37 -0800 (PST) Received: from www.outflux.net (198-0-35-241-static.hfc.comcastbusiness.net. [198.0.35.241]) by smtp.gmail.com with ESMTPSA id y8-20020a17090322c800b001cfc4d8eddesm8876332plg.180.2023.12.04.14.12.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 14:12:36 -0800 (PST) Date: Mon, 4 Dec 2023 14:12:36 -0800 From: Kees Cook To: Thomas =?iso-8859-1?Q?Wei=DFschuh?= Cc: "Gustavo A. R. Silva" , Luis Chamberlain , Iurii Zaikin , Greg Kroah-Hartman , Joel Granados , linux-hardening@vger.kernel.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH v2 05/18] seccomp: constify ctl_table arguments of utility functions Message-ID: <202312041412.7D0EAC47E@keescook> References: <20231204-const-sysctl-v2-0-7a5060b11447@weissschuh.net> <20231204-const-sysctl-v2-5-7a5060b11447@weissschuh.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20231204-const-sysctl-v2-5-7a5060b11447@weissschuh.net> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Mon, 04 Dec 2023 14:12:49 -0800 (PST) On Mon, Dec 04, 2023 at 08:52:18AM +0100, Thomas Wei?schuh wrote: > In a future commit the proc_handlers themselves will change to > "const struct ctl_table". As a preparation for that adapt the internal > helpers. > > Signed-off-by: Thomas Wei?schuh Acked-by: Kees Cook -- Kees Cook