Skip to content

Commit 1f2bc06

Browse files
gscuijrjohansen
authored andcommitted
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 76a1d26 ("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>
1 parent 2f7a29d commit 1f2bc06

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

security/apparmor/procattr.c

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,13 @@
1717

1818

1919
/**
20-
* aa_getprocattr - Return the profile information for @profile
21-
* @profile: the profile to print profile info about (NOT NULL)
22-
* @string: Returns - string containing the profile info (NOT NULL)
20+
* aa_getprocattr - Return the label information for @label
21+
* @label: the label to print label info about (NOT NULL)
22+
* @string: Returns - string containing the label info (NOT NULL)
2323
*
24-
* Requires: profile != NULL
24+
* Requires: label != NULL && string != NULL
2525
*
26-
* Creates a string containing the namespace_name://profile_name for
27-
* @profile.
26+
* Creates a string containing the label information for @label.
2827
*
2928
* Returns: size of string placed in @string else error code on failure
3029
*/

security/apparmor/resource.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ static void audit_cb(struct audit_buffer *ab, void *va)
4545
* @profile: profile being enforced (NOT NULL)
4646
* @resource: rlimit being auditing
4747
* @value: value being set
48+
* @peer: aa_albel of the task being set
49+
* @info: info being auditing
4850
* @error: error value
4951
*
5052
* Returns: 0 or sa->error else other error code on failure

0 commit comments

Comments
 (0)