commit | 8aeb5c5fd002c09d32f3151c17c645b85d1bb8e5 | [log] [tgz] |
---|---|---|
author | Stephen Smalley <sds@tycho.nsa.gov> | Fri Sep 14 13:55:43 2012 -0400 |
committer | Stephen Smalley <sds@tycho.nsa.gov> | Fri Sep 14 13:55:43 2012 -0400 |
tree | 0650cd70a7167bdb5a14e740a6da3c2ab69caf62 | |
parent | 906742dfd76bf9f21bddbddc43966c2cc9b0da0e [diff] |
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>