Only check SELinux enabled status once in selinux_check_access().

Move the SELinux enabled check to the once handler so that we do
not perform this on each call to selinux_check_access().  Reduces
overhead in both the SELinux-enabled and the SELinux-disabled cases.

Change-Id: I61fe85bc04fe53cbf840ba712c81bdb06e4e0c2f
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
1 file changed
tree: 0650cd70a7167bdb5a14e740a6da3c2ab69caf62
  1. include/
  2. src/
  3. Android.mk
  4. NOTICE