Skip to content

Commit 76862af

Browse files
rddunlapjrjohansen
authored andcommitted
apparmor: fix kernel-doc complaints
Correct kernel-doc notation to placate kernel-doc W=1 warnings: security/apparmor/policy.c:439: warning: duplicate section name 'Return' security/apparmor/secid.c:57: warning: Cannot understand * security/apparmor/file.c:174: warning: cannot understand function prototype: 'struct aa_perms default_perms = ' Signed-off-by: Randy Dunlap <rdunlap@infradead.org> Cc: John Johansen <john.johansen@canonical.com> Cc: John Johansen <john@apparmor.net> Cc: apparmor@lists.ubuntu.com Cc: Paul Moore <paul@paul-moore.com> Cc: James Morris <jmorris@namei.org> Cc: "Serge E. Hallyn" <serge@hallyn.com> Signed-off-by: John Johansen <john.johansen@canonical.com>
1 parent 1b929c0 commit 76862af

3 files changed

Lines changed: 4 additions & 8 deletions

File tree

security/apparmor/file.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ static int path_name(const char *op, struct aa_label *label,
161161
return 0;
162162
}
163163

164+
struct aa_perms default_perms = {};
164165
/**
165166
* aa_lookup_fperms - convert dfa compressed perms to internal perms
166167
* @dfa: dfa to lookup perms for (NOT NULL)
@@ -171,7 +172,6 @@ static int path_name(const char *op, struct aa_label *label,
171172
*
172173
* Returns: a pointer to a file permission set
173174
*/
174-
struct aa_perms default_perms = {};
175175
struct aa_perms *aa_lookup_fperms(struct aa_policydb *file_rules,
176176
aa_state_t state, struct path_cond *cond)
177177
{

security/apparmor/policy.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -430,11 +430,9 @@ static struct aa_policy *__lookup_parent(struct aa_ns *ns,
430430
* @hname: hierarchical profile name to find parent of (NOT NULL)
431431
* @gfp: type of allocation.
432432
*
433-
* Returns: NULL on error, parent profile on success
434-
*
435433
* Requires: ns mutex lock held
436434
*
437-
* Returns: unrefcounted parent policy or NULL if error creating
435+
* Return: unrefcounted parent policy on success or %NULL if error creating
438436
* place holder profiles.
439437
*/
440438
static struct aa_policy *__create_missing_ancestors(struct aa_ns *ns,
@@ -828,7 +826,7 @@ bool aa_current_policy_admin_capable(struct aa_ns *ns)
828826
/**
829827
* aa_may_manage_policy - can the current task manage policy
830828
* @label: label to check if it can manage policy
831-
* @op: the policy manipulation operation being done
829+
* @mask: contains the policy manipulation operation being done
832830
*
833831
* Returns: 0 if the task is allowed to manipulate policy else error
834832
*/
@@ -883,7 +881,6 @@ static struct aa_profile *__list_lookup_parent(struct list_head *lh,
883881
* __replace_profile - replace @old with @new on a list
884882
* @old: profile to be replaced (NOT NULL)
885883
* @new: profile to replace @old with (NOT NULL)
886-
* @share_proxy: transfer @old->proxy to @new
887884
*
888885
* Will duplicate and refcount elements that @new inherits from @old
889886
* and will inherit @old children.

security/apparmor/secid.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,7 @@ void aa_secid_update(u32 secid, struct aa_label *label)
5353
xa_unlock_irqrestore(&aa_secids, flags);
5454
}
5555

56-
/**
57-
*
56+
/*
5857
* see label for inverse aa_label_to_secid
5958
*/
6059
struct aa_label *aa_secid_to_label(u32 secid)

0 commit comments

Comments
 (0)