apparmor: fix obsoleted comments for aa_getprocattr() and audit_resource()
authorGaosheng Cui <cuigaosheng1@huawei.com>
Mon, 26 Sep 2022 11:48:38 +0000 (19:48 +0800)
committerJohn Johansen <john.johansen@canonical.com>
Tue, 25 Oct 2022 05:35:23 +0000 (22:35 -0700)
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>
security/apparmor/procattr.c
security/apparmor/resource.c

index 86ad26ef72ed425fa205247fdc6a9810f12d8c01..197d41f9c32b7b91280f91ffbb8ebaac8382da39 100644 (file)
 
 
 /**
- * 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
  */
index ed543f4edfd9feb8ed35f77e1a0cfd16629faf09..1b75d8343a8db13455b9e05542ee611e39fd1f6f 100644 (file)
@@ -45,6 +45,8 @@ static void audit_cb(struct audit_buffer *ab, void *va)
  * @profile: profile being enforced  (NOT NULL)
  * @resource: rlimit being auditing
  * @value: value being set
+ * @peer: aa_albel of the task being set
+ * @info: info being auditing
  * @error: error value
  *
  * Returns: 0 or sa->error else other error code on failure