From patchwork Fri Jul 7 08:07:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Li X-Patchwork-Id: 117038 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp3106864vqx; Fri, 7 Jul 2023 01:23:55 -0700 (PDT) X-Google-Smtp-Source: APBJJlH4Ck90xJDKqu5woxy2bcrQoOK8/+ofNBVCphQDOo24Dthm01cQVmQtErQ8qfDJYpnHXAi1 X-Received: by 2002:a05:6358:2905:b0:134:ec26:b53 with SMTP id y5-20020a056358290500b00134ec260b53mr5806756rwb.16.1688718234774; Fri, 07 Jul 2023 01:23:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688718234; cv=none; d=google.com; s=arc-20160816; b=QFTk8B3YyEOITn3L6NU7/KsoKVSXr9i/LfQ6km9Fz4/IS02ZLBV3JfU3rchmR376g2 +bykEypCD+1o4TVU+PcTo0ZLsQT3k3z2ifrM3fEvQzH2RGtTrm3URIPIjyBUMkvXl900 u8tD2a+NZNWvkCSMzS15dU7fcw6+cqxgHzDY3zx7+aVOKQ3fQWVHO1igS/VlzLHOSljN 3F17j7+UH/rSo3uHFAgEn4RJ7X0Gh3MrnuB644lILKsYgXPU4uPcLJPbtgmqFQ0m/mel QxKsgA1Lea12ex21eTZpRtX7/N+BvbjX9An5TpsrCPK02upQKe+isCGmuaAh41HX69N8 MRdg== 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; bh=p7RRWY989j302QXoredSpeCEDCjMvTA4ClT/byR7NxY=; fh=bS5a3K1sKfFnI/gVPC4wEVpOCMgg+Ne1nG2QL2h3ydI=; b=AJJHTpAmLd3wFFB9fMKP0Lq2dc4+e/QVwm5rvVZUep2y+NE+P7JQmulU8DW/gi0B+f WRRLEsQL4RQQ7YS+uOAUtpQ7IBbkN35+uBVRrFwCsFCIE0CfTivVl6RiSRh2ncK6jZQm vAw/h3o1ovlQSmUPYioiiLOpB4AeB36EFa0b+i7kaJe2m9q/RNG9MZ/rBoHfPmQZ+f5+ bloutA5KlzPBqSPXtVFyd8a3rS4BAfqQ/5PI9a7LBzTQIO0r0y8i0m5mNqe8v49juJCw KA5eQV4WDXsl/Vd8cjnWxS1pgy8sjATzD7M0DowDhRvf1m0Wf5Y0sLs6d09g3ZVM5voK /fRw== 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=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 144-20020a630096000000b0054fdc622556si3436299pga.558.2023.07.07.01.23.41; Fri, 07 Jul 2023 01:23:54 -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; 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=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232319AbjGGIHp (ORCPT + 99 others); Fri, 7 Jul 2023 04:07:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47704 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231962AbjGGIHo (ORCPT ); Fri, 7 Jul 2023 04:07:44 -0400 Received: from out30-111.freemail.mail.aliyun.com (out30-111.freemail.mail.aliyun.com [115.124.30.111]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D447D19BD; Fri, 7 Jul 2023 01:07:42 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R101e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046060;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=8;SR=0;TI=SMTPD_---0Vmnlo8x_1688717258; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0Vmnlo8x_1688717258) by smtp.aliyun-inc.com; Fri, 07 Jul 2023 16:07:39 +0800 From: Yang Li To: john.johansen@canonical.com Cc: paul@paul-moore.com, jmorris@namei.org, serge@hallyn.com, apparmor@lists.ubuntu.com, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org, Yang Li Subject: [PATCH -next] apparmor: Fix some kernel-doc comments Date: Fri, 7 Jul 2023 16:07:37 +0800 Message-Id: <20230707080737.49899-1-yang.lee@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c MIME-Version: 1.0 X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL 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?1770749411816978113?= X-GMAIL-MSGID: =?utf-8?q?1770749411816978113?= Use colons to separate parameter names from their specific meanings. silencethe warnings: security/apparmor/resource.c:111: warning: Function parameter or member 'label' not described in 'aa_task_setrlimit' security/apparmor/resource.c:111: warning: Function parameter or member 'task' not described in 'aa_task_setrlimit' security/apparmor/resource.c:111: warning: Function parameter or member 'resource' not described in 'aa_task_setrlimit' security/apparmor/resource.c:111: warning: Function parameter or member 'new_rlim' not described in 'aa_task_setrlimit' Signed-off-by: Yang Li Reviewed-by: Randy Dunlap --- security/apparmor/resource.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/security/apparmor/resource.c b/security/apparmor/resource.c index e85948164896..2bebc5d9e741 100644 --- a/security/apparmor/resource.c +++ b/security/apparmor/resource.c @@ -97,10 +97,10 @@ static int profile_setrlimit(struct aa_profile *profile, unsigned int resource, /** * aa_task_setrlimit - test permission to set an rlimit - * @label - label confining the task (NOT NULL) - * @task - task the resource is being set on - * @resource - the resource being set - * @new_rlim - the new resource limit (NOT NULL) + * @label: label confining the task (NOT NULL) + * @task: task the resource is being set on + * @resource: the resource being set + * @new_rlim: the new resource limit (NOT NULL) * * Control raising the processes hard limit. *