SELinux: code readability with avc_cache
authorEric Paris <eparis@redhat.com>
Thu, 12 Feb 2009 19:50:59 +0000 (14:50 -0500)
committerJames Morris <jmorris@namei.org>
Fri, 13 Feb 2009 22:23:45 +0000 (09:23 +1100)
commitedf3d1aecd0d608acbd561b0c527e1d41abcb657
tree49d88ec27a59f602784b47e2f951934d245f7de8
parentf1c6381a6e337adcecf84be2a838bd9e610e2365
SELinux: code readability with avc_cache

The code making use of struct avc_cache was not easy to read thanks to liberal
use of &avc_cache.{slots_lock,slots}[hvalue] throughout.  This patch simply
creates local pointers and uses those instead of the long global names.

Signed-off-by: Eric Paris <eparis@redhat.com>
Signed-off-by: James Morris <jmorris@namei.org>
security/selinux/avc.c