Message ID | 20231023011124.19034-1-yang.lee@linux.alibaba.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce89:0:b0:403:3b70:6f57 with SMTP id p9csp1015955vqx; Sun, 22 Oct 2023 18:11:53 -0700 (PDT) X-Google-Smtp-Source: AGHT+IESomp7SVXo9xKQmpb3h2iR5bRQeUGNBDt5PK3c6ctfgBZGXj6Qb+FzyI0w2FVy9+TQg0L6 X-Received: by 2002:a05:6358:5d91:b0:168:e493:2938 with SMTP id s17-20020a0563585d9100b00168e4932938mr451881rwm.19.1698023512699; Sun, 22 Oct 2023 18:11:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698023512; cv=none; d=google.com; s=arc-20160816; b=AHIAxeQBEzSkixhfrWGyzfXG+Qr7M14uLXeyah0azEwf/CbrjizbQ+SnCVbbPKjtuw AJz4uenaQLIbsX5GEAYN2uwPx4YPYaDxQBKuwWiscVSeWpeHvYY+jJ+DEo/S1cuDxlFY 57jSqySKEneL1Mdtp+W0SKlYKANBacaBeo0PN8s6lBBryFaoFhSnJ8U7UZ46z6yegIen d9ODEYJdN/CcPkU3MIvdd8JP8AZminvGz8itrW4Arfp1shqPuLGXiSimm3Ssdxv7EHGu 2yzGGjvJrQ1LzgS+nDNFyk+0j5027B8HNHl6uyTWme4hEKGX/yFf4YzdP2g59YGHilqw ce3Q== 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=dTqwQ2zTYDcHO1OsXnPl0NDL3VTqDF1eKatC+SyU0DU=; fh=CsrrSYuaOy6XOars/dGdvSnPykGebxMPWt+wbxMWbTM=; b=OM3OZRK5247qXDVnTMTdQWhJ7ZiROBKGMw2myMiKOUYjQdJk+QpH2Jvy4SOJ8wytE6 a3qQ/31DxYQLD6elMREbGgEXz2/gH/MhEKJg5STqBFPD6EX9mIcw/7UOrJ+bBhQH5GFD QXXOfv+Vhfl8qcYOSJTbXUR0fuQIaIxZ53HC4QhUe1KkdTsuijhIX9IK7DqCMfAe3jIi eI+rJ+luzb2LZhLmD+IgKhU9CIg0EDeumsCmxm8TC1ZPbY6sl9Hb/LFJrvi8Uwar85UZ Sb5ZoI41RY9pODOzVvXeVRvTU1aNbrSEDIZ+Dx8IBiUO67BASO/JqB8P7511zu/ympPs 6c9g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id cb17-20020a056a02071100b00578f1ab2287si5737727pgb.354.2023.10.22.18.11.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Oct 2023 18:11:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 4B6D6807DED6; Sun, 22 Oct 2023 18:11:50 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232971AbjJWBLe (ORCPT <rfc822;a1648639935@gmail.com> + 26 others); Sun, 22 Oct 2023 21:11:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49468 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229574AbjJWBLc (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sun, 22 Oct 2023 21:11:32 -0400 Received: from out30-97.freemail.mail.aliyun.com (out30-97.freemail.mail.aliyun.com [115.124.30.97]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B0EB9F1; Sun, 22 Oct 2023 18:11:29 -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=ay29a033018046056;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=9;SR=0;TI=SMTPD_---0Vucq0a7_1698023486; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0Vucq0a7_1698023486) by smtp.aliyun-inc.com; Mon, 23 Oct 2023 09:11:26 +0800 From: Yang Li <yang.lee@linux.alibaba.com> To: john.johansen@canonical.com, paul@paul-moore.com, jmorris@namei.org, serge@hallyn.com Cc: apparmor@lists.ubuntu.com, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org, Yang Li <yang.lee@linux.alibaba.com>, Abaci Robot <abaci@linux.alibaba.com> Subject: [PATCH -next 1/2] apparmor: Fix one kernel-doc comment Date: Mon, 23 Oct 2023 09:11:23 +0800 Message-Id: <20231023011124.19034-1-yang.lee@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.7 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Sun, 22 Oct 2023 18:11:50 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780506702948463666 X-GMAIL-MSGID: 1780506702948463666 |
Series |
[-next,1/2] apparmor: Fix one kernel-doc comment
|
|
Commit Message
Yang Li
Oct. 23, 2023, 1:11 a.m. UTC
Fix one kernel-doc comment to silence the warnings:
security/apparmor/domain.c:46: warning: Function parameter or member 'to_cred' not described in 'may_change_ptraced_domain'
security/apparmor/domain.c:46: warning: Excess function parameter 'cred' description in 'may_change_ptraced_domain'
Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=7036
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
---
security/apparmor/domain.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On 10/22/23 18:11, Yang Li wrote: > Fix one kernel-doc comment to silence the warnings: > security/apparmor/domain.c:46: warning: Function parameter or member 'to_cred' not described in 'may_change_ptraced_domain' > security/apparmor/domain.c:46: warning: Excess function parameter 'cred' description in 'may_change_ptraced_domain' > > Reported-by: Abaci Robot <abaci@linux.alibaba.com> > Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=7036 > Signed-off-by: Yang Li <yang.lee@linux.alibaba.com> sorry I missed replying to this. It was pulled into apparmor-next and merged upstream during the 6.7 merge window > --- > security/apparmor/domain.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/security/apparmor/domain.c b/security/apparmor/domain.c > index ed4a13d44894..89fbeab4b33b 100644 > --- a/security/apparmor/domain.c > +++ b/security/apparmor/domain.c > @@ -31,7 +31,7 @@ > > /** > * may_change_ptraced_domain - check if can change profile on ptraced task > - * @cred: cred of task changing domain > + * @to_cred: cred of task changing domain > * @to_label: profile to change to (NOT NULL) > * @info: message if there is an error > *
diff --git a/security/apparmor/domain.c b/security/apparmor/domain.c index ed4a13d44894..89fbeab4b33b 100644 --- a/security/apparmor/domain.c +++ b/security/apparmor/domain.c @@ -31,7 +31,7 @@ /** * may_change_ptraced_domain - check if can change profile on ptraced task - * @cred: cred of task changing domain + * @to_cred: cred of task changing domain * @to_label: profile to change to (NOT NULL) * @info: message if there is an error *