Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp199390pxb; Tue, 15 Feb 2022 11:17:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJyVjVb4qx6kIxRzx2/NcrIcaWbQDuW+m/+CtT+awntOlI7WX7SCJer4KwGRcIkmxDuGe+cA X-Received: by 2002:a17:90b:1bce:: with SMTP id oa14mr337721pjb.59.1644952675591; Tue, 15 Feb 2022 11:17:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644952675; cv=none; d=google.com; s=arc-20160816; b=nxTNZNBy0uavpiOpyrtD+b6lvpMVZyHaFIc5ecQU2oCaqVViwDZC/SFGU//kYgWLma mJI+5lQB53YEo5dq0gpZ6Se4RVBU7lNad4XxDXFnSt1eJNnQ6FxjMPdXO37L/DOzXHEY a81e06bcNxZqpOO0mu2cq92bOX2tO11Wvd3IrIMQA1ND5mxYiQDPZyVfF45sscrV/sWx yqXYyUhopdC7PZnvXT9CdebMHN+a14k3/PIbW4y1FguIIFwmTPt8ll7uk+R/q3BXNZjM Be1msnuLQoGcee+FsOp9oSSWsb133HvsUzwQV2qB0kKf0nFr4NeJcZpVfRYdXj1oHyRD vk2g== 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=SUfg7FfMYAqTMRnXBamGIfEuPxKsal1XBekaq8QTN1k=; b=DuHt8JRn+2KlvDBKYOFVgTKiyDXJF7D+smKtF5J3SQiCr063cI4D15V8Bo2k17z3wN x0sh/IaXrQq1CxKJ+C49T+7yRo/e34tojuC9ulBi23oWESDxvE3J8AM58BvGCgWlDRSk oE/aR0gnHnqomEUHk6YFlGPlS3IxX0/NobYteYeFOWrwQdlTj3NgX0mQ4PdXvoArhHob EbEnqtRHu/Ptoz14sW0ARDQXak9RRNN719dL0yO8tlX66MSkr8QcEHZVrXwIw3VAGTG2 eeuBLX/o87g4VGrARnx21ybmCne8ORmsTNHUuY//4jeH3oKq+u3ah//0ue1vE4vUbPLP ZmvA== 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:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b21si14604973pls.288.2022.02.15.11.17.39; Tue, 15 Feb 2022 11:17:55 -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; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237784AbiBOMl4 (ORCPT + 99 others); Tue, 15 Feb 2022 07:41:56 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:50060 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237764AbiBOMlv (ORCPT ); Tue, 15 Feb 2022 07:41:51 -0500 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 494C013FBA; Tue, 15 Feb 2022 04:41:41 -0800 (PST) Received: from fraeml714-chm.china.huawei.com (unknown [172.18.147.200]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4Jyggd3Bzzz685gn; Tue, 15 Feb 2022 20:41:17 +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; Tue, 15 Feb 2022 13:41:38 +0100 From: Roberto Sassu To: , , , , , , CC: , , , , , , Roberto Sassu Subject: [PATCH v2 1/6] ima: Fix documentation-related warnings in ima_main.c Date: Tue, 15 Feb 2022 13:40:37 +0100 Message-ID: <20220215124042.186506-2-roberto.sassu@huawei.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220215124042.186506-1-roberto.sassu@huawei.com> References: <20220215124042.186506-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: lhreml753-chm.china.huawei.com (10.201.108.203) To fraeml714-chm.china.huawei.com (10.206.15.33) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 Fix some warnings in ima_main.c, displayed with W=n make argument. 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