Skip to content

Commit 6c2976b

Browse files
Tetsuo HandaJames Morris
authored andcommitted
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 <penguin-kernel@I-love.SAKURA.ne.jp> Fixes: f4ad8f2 ("LSM: Infrastructure management of the task security") Acked-by: Kees Cook <keescook@chromium.org> Signed-off-by: James Morris <james.morris@microsoft.com>
1 parent 9624d5c commit 6c2976b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • security/apparmor/include

‎security/apparmor/include/task.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

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

2222
/*

0 commit comments

Comments
 (0)