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

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
......@@ -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;
}
/*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment