Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5933a627 authored by Colin Ian King's avatar Colin Ian King Committed by John Johansen
Browse files

apparmor: fix spelling mistake: "resoure" -> "resource"



Trivial fix to spelling mistake in comment and also with text in
audit_resource call.

Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarJohn Johansen <john.johansen@canonical.com>
parent 0b07194b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -47,7 +47,7 @@ static void audit_cb(struct audit_buffer *ab, void *va)
/**
 * audit_resource - audit setting resource limit
 * @profile: profile being enforced  (NOT NULL)
 * @resoure: rlimit being auditing
 * @resource: rlimit being auditing
 * @value: value being set
 * @error: error value
 *
@@ -128,7 +128,7 @@ int aa_task_setrlimit(struct aa_label *label, struct task_struct *task,
		error = fn_for_each(label, profile,
				audit_resource(profile, resource,
					       new_rlim->rlim_max, peer,
					       "cap_sys_resoure", -EACCES));
					       "cap_sys_resource", -EACCES));
	else
		error = fn_for_each_confined(label, profile,
				profile_setrlimit(profile, resource, new_rlim));