Commit 6c2976b0 authored by Tetsuo Handa's avatar Tetsuo Handa Committed by James Morris
Browse files

apparmor: Adjust offset when accessing task blob.



AppArmor will no longer be the only user of task blob
after TOMOYO started using task blob.

Signed-off-by: default avatarTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Fixes: f4ad8f2c ("LSM: Infrastructure management of the task security")
Acked-by: default avatarKees Cook <keescook@chromium.org>
Signed-off-by: default avatarJames Morris <james.morris@microsoft.com>
parent 9624d5c9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -16,7 +16,7 @@

static inline struct aa_task_ctx *task_ctx(struct task_struct *task)
{
	return task->security;
	return task->security + apparmor_blob_sizes.lbs_task;
}

/*