]> git.baikalelectronics.ru Git - kernel.git/commit
selinux: wrap AVC state
authorStephen Smalley <sds@tycho.nsa.gov>
Mon, 5 Mar 2018 16:47:56 +0000 (11:47 -0500)
committerPaul Moore <paul@paul-moore.com>
Tue, 20 Mar 2018 20:58:17 +0000 (16:58 -0400)
commit9a6a748cfcbad225563f7ba6a5bc28419941d6fb
treeb9e6f6492606000e1d8826b4eb2c882726c61722
parent804ed9bd016bc07d6a1313a7d28b4b9e5ef09f0e
selinux: wrap AVC state

Wrap the AVC state within the selinux_state structure and
pass it explicitly to all AVC functions.  The AVC private state
is encapsulated in a selinux_avc structure that is referenced
from the selinux_state.

This change should have no effect on SELinux behavior or
APIs (userspace or LSM).

Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
Reviewed-by: James Morris <james.morris@microsoft.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
security/selinux/avc.c
security/selinux/hooks.c
security/selinux/include/avc.h
security/selinux/include/avc_ss.h
security/selinux/include/security.h
security/selinux/netlabel.c
security/selinux/selinuxfs.c
security/selinux/ss/services.c
security/selinux/xfrm.c