OSDN Git Service

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)
commit6b6bc6205d98796361962ee282a063f18ba8dc57
treeb9e6f6492606000e1d8826b4eb2c882726c61722
parent0619f0f5e36f12e100ef294f5980cfe7c93ff23e
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