Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp282510pxm; Wed, 2 Mar 2022 15:21:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJzgrHzGHC/Y2gHyEFFR+s6e+VIrgrpORyW9kwvU2vlw48zg7WSiqUFMD0H7C2TO8nMSQ9zK X-Received: by 2002:a63:9245:0:b0:377:7e40:1905 with SMTP id s5-20020a639245000000b003777e401905mr23515933pgn.139.1646263304409; Wed, 02 Mar 2022 15:21:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646263304; cv=none; d=google.com; s=arc-20160816; b=rlkmfN06Gj0h5kFOI3OuB6NlyyyPT6ynLPWreMSmeP4VTri63MZGnGSCX8YDuGFclH lPe8xTEjsBO4Zp+ephg1mEtGlP3dYqqLZW8qtwsZ7ppPF+MotQoVFFTvxehqDafjlBC8 kpghpehMy+DT2qbi+a9PLEtC3Ksh3Pf/0jphbLDiV++JwIN2kF98yzPgXTMVnwXPm5yE XM88KpqKoYaXrRvYVajbNVqPebAV1x2+mnaB4OdY52Iwm7MmocPHJpV+3dfRgwMPJCfs zINv4xuTZFI+pfe9DkHsgd9dR1HIB2Ti/I67319b1eaz1aoX6qIWDl+qh1w54FmBfHmJ LgJQ== 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; bh=zOqtsQPvYZqNWKQYAV4Ca1rQuNFmT/hRS3kUf0Jl0Vk=; b=XxAZgD4MbT8xXUhzYtM/t+I7q/uKwkAfnMci+qFEA4OFaz30oieF+f5fLN89dpQpLC H5NmkrBQcwxaMREGnXs91BmBQAs6wpcXTFKym1XRrI3s0rcSmE3bNrWnwmxFBIZhMlVy 82f05MUNO3U4JxoQpMBey9iZqvpzx9SQFloKZFmcDaOj1mHBLrOqlYEO4lNJ4FcjzslA qPQkT/o9jZHlY9GyWUOCE/f1r9QeW/22JdyARJb4l1WPk3EPjpFJxjoBzH8Cv19S5QUO dtOVWDeSvkoWppRKNAmLiB99D8OOApM4jyinjkoRFIrUGtSPSHq1iztQjWrkrF06gDJe sICg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id h131-20020a636c89000000b003739e9e86c4si372443pgc.553.2022.03.02.15.21.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Mar 2022 15:21:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id DF805117CAF; Wed, 2 Mar 2022 14:57:49 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241418AbiCBLQG (ORCPT + 99 others); Wed, 2 Mar 2022 06:16:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53290 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241323AbiCBLPw (ORCPT ); Wed, 2 Mar 2022 06:15:52 -0500 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 028DA606FB; Wed, 2 Mar 2022 03:14:34 -0800 (PST) Received: from fraeml714-chm.china.huawei.com (unknown [172.18.147.207]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4K7s1J3Kcnz67Kvs; Wed, 2 Mar 2022 19:13:24 +0800 (CST) Received: from roberto-ThinkStation-P620.huawei.com (10.204.63.22) by fraeml714-chm.china.huawei.com (10.206.15.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21; Wed, 2 Mar 2022 12:14:31 +0100 From: Roberto Sassu To: , , , , , , , , CC: , , , , , , Roberto Sassu , Shuah Khan Subject: [PATCH v3 1/9] ima: Fix documentation-related warnings in ima_main.c Date: Wed, 2 Mar 2022 12:13:56 +0100 Message-ID: <20220302111404.193900-2-roberto.sassu@huawei.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220302111404.193900-1-roberto.sassu@huawei.com> References: <20220302111404.193900-1-roberto.sassu@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.204.63.22] X-ClientProxiedBy: lhreml751-chm.china.huawei.com (10.201.108.201) To fraeml714-chm.china.huawei.com (10.206.15.33) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Fix the following warnings in ima_main.c, displayed with W=n make argument: security/integrity/ima/ima_main.c:432: warning: Function parameter or member 'vma' not described in 'ima_file_mprotect' security/integrity/ima/ima_main.c:636: warning: Function parameter or member 'inode' not described in 'ima_post_create_tmpfile' security/integrity/ima/ima_main.c:636: warning: Excess function parameter 'file' description in 'ima_post_create_tmpfile' security/integrity/ima/ima_main.c:843: warning: Function parameter or member 'load_id' not described in 'ima_post_load_data' security/integrity/ima/ima_main.c:843: warning: Excess function parameter 'id' description in 'ima_post_load_data' Also, fix some style issues in the description of ima_post_create_tmpfile() and ima_post_path_mknod(). Reviewed-by: Shuah Khan Signed-off-by: Roberto Sassu --- security/integrity/ima/ima_main.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/security/integrity/ima/ima_main.c b/security/integrity/ima/ima_main.c index 8c6e4514d494..946ba8a12eab 100644 --- a/security/integrity/ima/ima_main.c +++ b/security/integrity/ima/ima_main.c @@ -418,6 +418,7 @@ int ima_file_mmap(struct file *file, unsigned long prot) /** * ima_file_mprotect - based on policy, limit mprotect change + * @vma: vm_area_struct protection is set to * @prot: contains the protection that will be applied by the kernel. * * Files can be mmap'ed read/write and later changed to execute to circumvent @@ -610,8 +611,8 @@ EXPORT_SYMBOL_GPL(ima_inode_hash); /** * ima_post_create_tmpfile - mark newly created tmpfile as new - * @mnt_userns: user namespace of the mount the inode was found from - * @file : newly created tmpfile + * @mnt_userns: user namespace of the mount the inode was found from + * @inode: inode of the newly created tmpfile * * No measuring, appraising or auditing of newly created tmpfiles is needed. * Skip calling process_measurement(), but indicate which newly, created @@ -643,7 +644,7 @@ void ima_post_create_tmpfile(struct user_namespace *mnt_userns, /** * ima_post_path_mknod - mark as a new inode - * @mnt_userns: user namespace of the mount the inode was found from + * @mnt_userns: user namespace of the mount the inode was found from * @dentry: newly created dentry * * Mark files created via the mknodat syscall as new, so that the @@ -814,8 +815,8 @@ int ima_load_data(enum kernel_load_data_id id, bool contents) * ima_post_load_data - appraise decision based on policy * @buf: pointer to in memory file contents * @size: size of in memory file contents - * @id: kernel load data caller identifier - * @description: @id-specific description of contents + * @load_id: kernel load data caller identifier + * @description: @load_id-specific description of contents * * Measure/appraise/audit in memory buffer based on policy. Policy rules * are written in terms of a policy identifier. -- 2.32.0