Skip to content

Commit

Permalink
apparmor: Fix kernel-doc warnings in apparmor/domain.c
Browse files Browse the repository at this point in the history
Fix kernel-doc warnings:

security/apparmor/domain.c:279: warning: Function parameter or
member 'perms' not described in 'change_profile_perms'
security/apparmor/domain.c:380: warning: Function parameter or
member 'bprm' not described in 'find_attach'
security/apparmor/domain.c:380: warning: Function parameter or
member 'head' not described in 'find_attach'
security/apparmor/domain.c:380: warning: Function parameter or
member 'info' not described in 'find_attach'
security/apparmor/domain.c:380: warning: Function parameter or
member 'name' not described in 'find_attach'
security/apparmor/domain.c:558: warning: Function parameter or
member 'info' not described in 'x_to_label'

Signed-off-by: Gaosheng Cui <[email protected]>
Signed-off-by: John Johansen <[email protected]>
  • Loading branch information
gscui authored and John Johansen committed Jul 10, 2023
1 parent c98c897 commit 76426c9
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions security/apparmor/domain.c
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,7 @@ static int label_match(struct aa_profile *profile, struct aa_label *label,
* @stack: whether this is a stacking request
* @request: requested perms
* @start: state to start matching in
* @perms: Returns computed perms (NOT NULL)
*
*
* Returns: permission set
Expand Down Expand Up @@ -359,11 +360,11 @@ static int aa_xattrs_match(const struct linux_binprm *bprm,

/**
* find_attach - do attachment search for unconfined processes
* @bprm - binprm structure of transitioning task
* @bprm: binprm structure of transitioning task
* @ns: the current namespace (NOT NULL)
* @head - profile list to walk (NOT NULL)
* @name - to match against (NOT NULL)
* @info - info message if there was an error (NOT NULL)
* @head: profile list to walk (NOT NULL)
* @name: to match against (NOT NULL)
* @info: info message if there was an error (NOT NULL)
*
* Do a linear search on the profiles in the list. There is a matching
* preference where an exact match is preferred over a name which uses
Expand Down Expand Up @@ -545,6 +546,7 @@ struct aa_label *x_table_lookup(struct aa_profile *profile, u32 xindex,
* @name: name to lookup (NOT NULL)
* @xindex: index into x transition table
* @lookupname: returns: name used in lookup if one was specified (NOT NULL)
* @info: info message if there was an error (NOT NULL)
*
* find label for a transition index
*
Expand Down

0 comments on commit 76426c9

Please sign in to comment.