mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-27 17:11:46 +00:00
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: f4ad8f2c40
("LSM: Infrastructure management of the task security")
Acked-by: Kees Cook <keescook@chromium.org>
Signed-off-by: James Morris <james.morris@microsoft.com>
This commit is contained in:
parent
9624d5c9c7
commit
6c2976b06f
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue