From 6c2976b06f6813768d3e61aeeb2b3fb04597a25f Mon Sep 17 00:00:00 2001 From: Tetsuo Handa Date: Mon, 21 Jan 2019 10:25:10 +0900 Subject: 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 --- security/apparmor/include/task.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'security/apparmor') diff --git a/security/apparmor/include/task.h b/security/apparmor/include/task.h index 039c1e60887a..311e652324e3 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; } /* -- cgit v1.2.3-59-g8ed1b