summaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorYang Li <yang.lee@linux.alibaba.com>2022-03-17 09:03:30 +0800
committerJohn Johansen <john.johansen@canonical.com>2022-07-09 15:13:59 -0700
commitbab1f77fb815374e9d092a72d5a2abc7c943bca3 (patch)
tree42c61d2f82e849de05c7e3c6d52038394db2c0c9 /security
parentf9da5b14521cbb57ff45bd8134d3b8320638b1e6 (diff)
downloadlinux-stable-bab1f77fb815374e9d092a72d5a2abc7c943bca3.tar.gz
linux-stable-bab1f77fb815374e9d092a72d5a2abc7c943bca3.tar.bz2
linux-stable-bab1f77fb815374e9d092a72d5a2abc7c943bca3.zip
apparmor: Fix some kernel-doc comments
Remove some warnings found by running scripts/kernel-doc, which is caused by using 'make W=1'. security/apparmor/domain.c:137: warning: Function parameter or member 'state' not described in 'label_compound_match' security/apparmor/domain.c:137: warning: Excess function parameter 'start' description in 'label_compound_match' security/apparmor/domain.c:1294: warning: Excess function parameter 'onexec' description in 'aa_change_profile' Reported-by: Abaci Robot <abaci@linux.alibaba.com> Signed-off-by: Yang Li <yang.lee@linux.alibaba.com> Signed-off-by: John Johansen <john.johansen@canonical.com>
Diffstat (limited to 'security')
-rw-r--r--security/apparmor/domain.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/security/apparmor/domain.c b/security/apparmor/domain.c
index a29e69d2c300..d71023f5c9c4 100644
--- a/security/apparmor/domain.c
+++ b/security/apparmor/domain.c
@@ -119,7 +119,7 @@ static inline unsigned int match_component(struct aa_profile *profile,
* @profile: profile to find perms for
* @label: label to check access permissions for
* @stack: whether this is a stacking request
- * @start: state to start match in
+ * @state: state to start match in
* @subns: whether to do permission checks on components in a subns
* @request: permissions to request
* @perms: perms struct to set
@@ -1279,7 +1279,6 @@ static int change_profile_perms_wrapper(const char *op, const char *name,
/**
* aa_change_profile - perform a one-way profile transition
* @fqname: name of profile may include namespace (NOT NULL)
- * @onexec: whether this transition is to take place immediately or at exec
* @flags: flags affecting change behavior
*
* Change to new profile @name. Unlike with hats, there is no way