Skip to content

Commit 76426c9

Browse files
gscuijrjohansen
authored andcommitted
apparmor: Fix kernel-doc warnings in apparmor/domain.c
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 <cuigaosheng1@huawei.com> Signed-off-by: John Johansen <john.johansen@canonical.com>
1 parent c98c897 commit 76426c9

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

security/apparmor/domain.c

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,7 @@ static int label_match(struct aa_profile *profile, struct aa_label *label,
265265
* @stack: whether this is a stacking request
266266
* @request: requested perms
267267
* @start: state to start matching in
268+
* @perms: Returns computed perms (NOT NULL)
268269
*
269270
*
270271
* Returns: permission set
@@ -359,11 +360,11 @@ static int aa_xattrs_match(const struct linux_binprm *bprm,
359360

360361
/**
361362
* find_attach - do attachment search for unconfined processes
362-
* @bprm - binprm structure of transitioning task
363+
* @bprm: binprm structure of transitioning task
363364
* @ns: the current namespace (NOT NULL)
364-
* @head - profile list to walk (NOT NULL)
365-
* @name - to match against (NOT NULL)
366-
* @info - info message if there was an error (NOT NULL)
365+
* @head: profile list to walk (NOT NULL)
366+
* @name: to match against (NOT NULL)
367+
* @info: info message if there was an error (NOT NULL)
367368
*
368369
* Do a linear search on the profiles in the list. There is a matching
369370
* preference where an exact match is preferred over a name which uses
@@ -545,6 +546,7 @@ struct aa_label *x_table_lookup(struct aa_profile *profile, u32 xindex,
545546
* @name: name to lookup (NOT NULL)
546547
* @xindex: index into x transition table
547548
* @lookupname: returns: name used in lookup if one was specified (NOT NULL)
549+
* @info: info message if there was an error (NOT NULL)
548550
*
549551
* find label for a transition index
550552
*

0 commit comments

Comments
 (0)