From patchwork Fri Dec 2 07:39:53 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 28734 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp702257wrr; Thu, 1 Dec 2022 23:50:48 -0800 (PST) X-Google-Smtp-Source: AA0mqf4sAAAhCjk7fjzNHD2oSc4223CbU5ps5P3+0bMkbyMqUigIfTg19OA2HOylWacs7MhZ/MAu X-Received: by 2002:a63:f442:0:b0:477:ea30:7d6a with SMTP id p2-20020a63f442000000b00477ea307d6amr30222781pgk.212.1669967448651; Thu, 01 Dec 2022 23:50:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669967448; cv=none; d=google.com; s=arc-20160816; b=mPsBrBm/T76ifJ3MCe1Ar9uuDnwp4Kqy9cvR+h4c0Il1m3WDLneBGNVzXA2CFnYu2h B5gvNLgSJ3AHJNnIT+G2XGhWt3sn8QGmqv3a6OsJiTeVHS5OwMZDAFNbulUnJzcIkFL7 +D5TL0J0kRMJHbO6J3PKrkCyhtNQbGYWGU5LPxHciHPz7y5+5DJVizFDpkZNtfAWfLTH BbG38mMslpNw9Oub8gd5/1Z/G5BA309M9fojyrvide74yAnyKtw2fFrHbvoX97AUl4CT 3zHYpEt0k1hORkRoYZCPzSy37y2oqn5GkJAYxX8R2nx6JJ6eIwGx+Dstm4XuwkEgN8Q5 86sA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=0dCXOpPa5VcMeZD1JNwijRb+T0fjwW9SfAbX9iBAGDs=; b=B7as30WSkIFBUI8Ct0TfJGQAxLyZXfksHspw5cGc2IHRMCGUbCXkZBcH8ooCTk/2Pe X1Rnzvs7WnL5mlhdcVOe/suo+dA5uL+DXalWvkm2+8XTHu9xHRUySaDGlQiwBn8fUjf2 OSxBXtYK0Tjb0Ra8FJI0cDaRd1hDA4ruuYmJC8ZxOLZnRV2BWtZJnAttZ0Ii8yTt6Vq5 AEvddR6c3m2spAYSRCe/JHVfj6LlBZJF18FbLl799yTUJBiYZx/GBXtqEsr6joMUmPq1 UrW7wpbNxteFKey3Rd9ZSAchINU8E3+uz2k8r2GZfe2o86JHjFzqbpMdIaWL6Wc8RhwO zkhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=qWpfzOGP; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mi8-20020a17090b4b4800b00213d1d59224si7152541pjb.136.2022.12.01.23.50.35; Thu, 01 Dec 2022 23:50:48 -0800 (PST) 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=casper.20170209 header.b=qWpfzOGP; 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 S232377AbiLBHkG (ORCPT + 99 others); Fri, 2 Dec 2022 02:40:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49286 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230094AbiLBHkB (ORCPT ); Fri, 2 Dec 2022 02:40:01 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1FC22B0B60 for ; Thu, 1 Dec 2022 23:40:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:In-Reply-To:References; bh=0dCXOpPa5VcMeZD1JNwijRb+T0fjwW9SfAbX9iBAGDs=; b=qWpfzOGP6CGenY9hd1tqbF8XY/ aCaRmcznYx6ElAWP/AYmb8bTTRKbNiuNfMQkrpH5HTezKxsstTlZI6TixXX5Wb3SRTWTL9cVKugj/ jRDxStqgCfaErZ5F3G3Ypf4uCoqXfhZc7+wf4MEtUFAgpKJDSGSj7KHY3j2j0QZpIFdPOUcZBdNYy vUvglLHmLfysA3ENgKbaupLoomYEeTc4tip3PY2BWslQNEBeEE3wzMXZ9DGH1ebZLh90ed6yqoizG 4Ug0IdQLE2/iqiZoIlnq/sJ40dduw3lJO5UD52eshg4pR+4zdCBaftWonCcMNFQGHzQ+QJmgRxZXI eTtTa6kg==; Received: from [2601:1c2:d80:3110::a2e7] (helo=casper.infradead.org) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1p10eS-00HW0q-Ro; Fri, 02 Dec 2022 07:40:05 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Kees Cook Subject: [PATCH] seccomp: document the "filter_count" field Date: Thu, 1 Dec 2022 23:39:53 -0800 Message-Id: <20221202073953.14677-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1751087787687753161?= X-GMAIL-MSGID: =?utf-8?q?1751087787687753161?= Add missing kernel-doc for the 'filter_count' field in struct seccomp. seccomp.h:40: warning: Function parameter or member 'filter_count' not described in 'seccomp' Fixes: c818c03b661c ("seccomp: Report number of loaded filters in /proc/$pid/status") Signed-off-by: Randy Dunlap Cc: Kees Cook --- include/linux/seccomp.h | 1 + 1 file changed, 1 insertion(+) diff -- a/include/linux/seccomp.h b/include/linux/seccomp.h --- a/include/linux/seccomp.h +++ b/include/linux/seccomp.h @@ -27,6 +27,7 @@ struct seccomp_filter; * * @mode: indicates one of the valid values above for controlled * system calls available to a process. + * @filter_count: number of seccomp filters * @filter: must always point to a valid seccomp-filter or NULL as it is * accessed without locking during system call entry. *