Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: f4ad8f2c4076 ("LSM: Infrastructure management of the task security")
Acked-by: Kees Cook <keescook@chromium.org>
Signed-off-by: James Morris <james.morris@microsoft.com>

authored by

Tetsuo Handa and committed by
James Morris
6c2976b0 9624d5c9

+1 -1
+1 -1
security/apparmor/include/task.h
··· 16 16 17 17 static inline struct aa_task_ctx *task_ctx(struct task_struct *task) 18 18 { 19 - return task->security; 19 + return task->security + apparmor_blob_sizes.lbs_task; 20 20 } 21 21 22 22 /*