* [PATCH -next 1/2] apparmor: Fix one kernel-doc comment
@ 2023-10-23 1:11 Yang Li
2023-10-23 1:11 ` [PATCH -next 2/2] apparmor: Fix some kernel-doc comments Yang Li
2023-11-19 9:09 ` [PATCH -next 1/2] apparmor: Fix one kernel-doc comment John Johansen
0 siblings, 2 replies; 4+ messages in thread
From: Yang Li @ 2023-10-23 1:11 UTC (permalink / raw)
To: john.johansen, paul, jmorris, serge
Cc: apparmor, linux-security-module, linux-kernel, Yang Li,
Abaci Robot
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(-)
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
*
--
2.20.1.7.g153144c
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH -next 2/2] apparmor: Fix some kernel-doc comments
2023-10-23 1:11 [PATCH -next 1/2] apparmor: Fix one kernel-doc comment Yang Li
@ 2023-10-23 1:11 ` Yang Li
2023-11-19 9:09 ` John Johansen
2023-11-19 9:09 ` [PATCH -next 1/2] apparmor: Fix one kernel-doc comment John Johansen
1 sibling, 1 reply; 4+ messages in thread
From: Yang Li @ 2023-10-23 1:11 UTC (permalink / raw)
To: john.johansen, paul, jmorris, serge
Cc: apparmor, linux-security-module, linux-kernel, Yang Li,
Abaci Robot
Fix some kernel-doc comments to silence the warnings:
security/apparmor/policy.c:117: warning: Function parameter or member 'kref' not described in 'aa_pdb_free_kref'
security/apparmor/policy.c:117: warning: Excess function parameter 'kr' description in 'aa_pdb_free_kref'
security/apparmor/policy.c:882: warning: Function parameter or member 'subj_cred' not described in 'aa_may_manage_policy'
Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=7037
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
---
security/apparmor/policy.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/security/apparmor/policy.c b/security/apparmor/policy.c
index a441d96adcbf..ed4c9803c8fa 100644
--- a/security/apparmor/policy.c
+++ b/security/apparmor/policy.c
@@ -111,7 +111,7 @@ static void aa_free_pdb(struct aa_policydb *policy)
/**
* aa_pdb_free_kref - free aa_policydb by kref (called by aa_put_pdb)
- * @kr: kref callback for freeing of a dfa (NOT NULL)
+ * @kref: kref callback for freeing of a dfa (NOT NULL)
*/
void aa_pdb_free_kref(struct kref *kref)
{
@@ -870,7 +870,7 @@ bool aa_current_policy_admin_capable(struct aa_ns *ns)
/**
* aa_may_manage_policy - can the current task manage policy
- * @subj_cred; subjects cred
+ * @subj_cred: subjects cred
* @label: label to check if it can manage policy
* @ns: namespace being managed by @label (may be NULL if @label's ns)
* @mask: contains the policy manipulation operation being done
--
2.20.1.7.g153144c
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH -next 1/2] apparmor: Fix one kernel-doc comment
2023-10-23 1:11 [PATCH -next 1/2] apparmor: Fix one kernel-doc comment Yang Li
2023-10-23 1:11 ` [PATCH -next 2/2] apparmor: Fix some kernel-doc comments Yang Li
@ 2023-11-19 9:09 ` John Johansen
1 sibling, 0 replies; 4+ messages in thread
From: John Johansen @ 2023-11-19 9:09 UTC (permalink / raw)
To: Yang Li, paul, jmorris, serge
Cc: apparmor, linux-security-module, linux-kernel, Abaci Robot
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
> *
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH -next 2/2] apparmor: Fix some kernel-doc comments
2023-10-23 1:11 ` [PATCH -next 2/2] apparmor: Fix some kernel-doc comments Yang Li
@ 2023-11-19 9:09 ` John Johansen
0 siblings, 0 replies; 4+ messages in thread
From: John Johansen @ 2023-11-19 9:09 UTC (permalink / raw)
To: Yang Li, paul, jmorris, serge
Cc: apparmor, linux-security-module, linux-kernel, Abaci Robot
On 10/22/23 18:11, Yang Li wrote:
> Fix some kernel-doc comments to silence the warnings:
> security/apparmor/policy.c:117: warning: Function parameter or member 'kref' not described in 'aa_pdb_free_kref'
> security/apparmor/policy.c:117: warning: Excess function parameter 'kr' description in 'aa_pdb_free_kref'
> security/apparmor/policy.c:882: warning: Function parameter or member 'subj_cred' not described in 'aa_may_manage_policy'
>
> Reported-by: Abaci Robot <abaci@linux.alibaba.com>
> Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=7037
> 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/policy.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/security/apparmor/policy.c b/security/apparmor/policy.c
> index a441d96adcbf..ed4c9803c8fa 100644
> --- a/security/apparmor/policy.c
> +++ b/security/apparmor/policy.c
> @@ -111,7 +111,7 @@ static void aa_free_pdb(struct aa_policydb *policy)
>
> /**
> * aa_pdb_free_kref - free aa_policydb by kref (called by aa_put_pdb)
> - * @kr: kref callback for freeing of a dfa (NOT NULL)
> + * @kref: kref callback for freeing of a dfa (NOT NULL)
> */
> void aa_pdb_free_kref(struct kref *kref)
> {
> @@ -870,7 +870,7 @@ bool aa_current_policy_admin_capable(struct aa_ns *ns)
>
> /**
> * aa_may_manage_policy - can the current task manage policy
> - * @subj_cred; subjects cred
> + * @subj_cred: subjects cred
> * @label: label to check if it can manage policy
> * @ns: namespace being managed by @label (may be NULL if @label's ns)
> * @mask: contains the policy manipulation operation being done
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-11-19 9:09 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-23 1:11 [PATCH -next 1/2] apparmor: Fix one kernel-doc comment Yang Li
2023-10-23 1:11 ` [PATCH -next 2/2] apparmor: Fix some kernel-doc comments Yang Li
2023-11-19 9:09 ` John Johansen
2023-11-19 9:09 ` [PATCH -next 1/2] apparmor: Fix one kernel-doc comment John Johansen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).