Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Gaosheng Cui and committed by
John Johansen
1f2bc06a 2f7a29de

+7 -6
+5 -6
security/apparmor/procattr.c
··· 17 17 18 18 19 19 /** 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) 23 23 * 24 - * Requires: profile != NULL 24 + * Requires: label != NULL && string != NULL 25 25 * 26 - * Creates a string containing the namespace_name://profile_name for 27 - * @profile. 26 + * Creates a string containing the label information for @label. 28 27 * 29 28 * Returns: size of string placed in @string else error code on failure 30 29 */
+2
security/apparmor/resource.c
··· 45 45 * @profile: profile being enforced (NOT NULL) 46 46 * @resource: rlimit being auditing 47 47 * @value: value being set 48 + * @peer: aa_albel of the task being set 49 + * @info: info being auditing 48 50 * @error: error value 49 51 * 50 52 * Returns: 0 or sa->error else other error code on failure