Skip to content

Commit

Permalink
apparmor: Fix some kernel-doc comments
Browse files Browse the repository at this point in the history
Fix some kernel-doc comments to silence the warnings:
security/apparmor/capability.c:66: warning: Function parameter or member 'ad' not described in 'audit_caps'
security/apparmor/capability.c:66: warning: Excess function parameter 'as' description in 'audit_caps'
security/apparmor/capability.c:154: warning: Function parameter or member 'subj_cred' not described in 'aa_capable'
security/apparmor/capability.c:154: warning: Excess function parameter 'subj_cread' description in 'aa_capable'

Reported-by: Abaci Robot <[email protected]>
Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=7035
Signed-off-by: Yang Li <[email protected]>
Signed-off-by: John Johansen <[email protected]>
  • Loading branch information
Yang Li authored and John Johansen committed Oct 23, 2023
1 parent 7060d3c commit 6a81051
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions security/apparmor/capability.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ static void audit_cb(struct audit_buffer *ab, void *va)

/**
* audit_caps - audit a capability
* @as: audit data
* @ad: audit data
* @profile: profile being tested for confinement (NOT NULL)
* @cap: capability tested
* @error: error code returned by test
Expand Down Expand Up @@ -140,7 +140,7 @@ static int profile_capable(struct aa_profile *profile, int cap,

/**
* aa_capable - test permission to use capability
* @subj_cread: cred we are testing capability against
* @subj_cred: cred we are testing capability against
* @label: label being tested for capability (NOT NULL)
* @cap: capability to be tested
* @opts: CAP_OPT_NOAUDIT bit determines whether audit record is generated
Expand Down

0 comments on commit 6a81051

Please sign in to comment.