From: Tetsuo Handa Date: Mon, 21 Jan 2019 01:25:10 +0000 (+0900) Subject: apparmor: Adjust offset when accessing task blob. X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=6c2976b06f6813768d3e61aeeb2b3fb04597a25f;p=linux.git 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: Tetsuo Handa Fixes: f4ad8f2c4076 ("LSM: Infrastructure management of the task security") Acked-by: Kees Cook Signed-off-by: James Morris --- diff --git a/security/apparmor/include/task.h b/security/apparmor/include/task.h index 039c1e60887ab..311e652324e3a 100644 --- a/security/apparmor/include/task.h +++ b/security/apparmor/include/task.h @@ -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; } /*