diff options
author | Gaosheng Cui <cuigaosheng1@huawei.com> | 2022-09-26 19:48:38 +0800 |
---|---|---|
committer | John Johansen <john.johansen@canonical.com> | 2022-10-24 22:35:23 -0700 |
commit | 1f2bc06a8dbff73957f433b22c6fd35fccfb47a4 (patch) | |
tree | d5508f6710f610523da8f7c62b5bc95ceddc058d /security/apparmor/procattr.c | |
parent | 2f7a29debae2efef94b981377fa3622986cd57f5 (diff) | |
download | lwn-1f2bc06a8dbff73957f433b22c6fd35fccfb47a4.tar.gz lwn-1f2bc06a8dbff73957f433b22c6fd35fccfb47a4.zip |
apparmor: fix obsoleted comments for aa_getprocattr() and audit_resource()
Update the comments for aa_getprocattr() and audit_resource(), the
args of them have beed changed since commit 76a1d263aba3 ("apparmor:
switch getprocattr to using label_print fns()").
Signed-off-by: Gaosheng Cui <cuigaosheng1@huawei.com>
Signed-off-by: John Johansen <john.johansen@canonical.com>
Diffstat (limited to 'security/apparmor/procattr.c')
-rw-r--r-- | security/apparmor/procattr.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/security/apparmor/procattr.c b/security/apparmor/procattr.c index 86ad26ef72ed..197d41f9c32b 100644 --- a/security/apparmor/procattr.c +++ b/security/apparmor/procattr.c @@ -17,14 +17,13 @@ /** - * aa_getprocattr - Return the profile information for @profile - * @profile: the profile to print profile info about (NOT NULL) - * @string: Returns - string containing the profile info (NOT NULL) + * aa_getprocattr - Return the label information for @label + * @label: the label to print label info about (NOT NULL) + * @string: Returns - string containing the label info (NOT NULL) * - * Requires: profile != NULL + * Requires: label != NULL && string != NULL * - * Creates a string containing the namespace_name://profile_name for - * @profile. + * Creates a string containing the label information for @label. * * Returns: size of string placed in @string else error code on failure */ |