]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
selinux: move avdcache to per-task security struct
authorStephen Smalley <stephen.smalley.work@gmail.com>
Thu, 13 Nov 2025 20:23:14 +0000 (15:23 -0500)
committerPaul Moore <paul@paul-moore.com>
Thu, 20 Nov 2025 21:43:51 +0000 (16:43 -0500)
commitdde3a5d0f4dce1d1a6095e6b8eeb59b75d28fb3b
tree8303bd44da6753eb01a234b419200030c2d047b6
parent75f72fe289a7f76204a728668edcf20e4a2a6097
selinux: move avdcache to per-task security struct

The avdcache is meant to be per-task; move it to a new
task_security_struct that is duplicated per-task.

Cc: stable@vger.kernel.org
Fixes: 5d7ddc59b3d89b724a5aa8f30d0db94ff8d2d93f ("selinux: reduce path walk overhead")
Signed-off-by: Stephen Smalley <stephen.smalley.work@gmail.com>
[PM: line length fixes]
Signed-off-by: Paul Moore <paul@paul-moore.com>
security/selinux/hooks.c
security/selinux/include/objsec.h