selinux: restore optimization to selinux_file_permission
authorStephen Smalley <sds@tycho.nsa.gov>
Mon, 22 Jun 2009 18:54:53 +0000 (14:54 -0400)
committerJames Morris <jmorris@namei.org>
Mon, 22 Jun 2009 22:19:58 +0000 (08:19 +1000)
Restore the optimization to skip revalidation in selinux_file_permission
if nothing has changed since the dentry_open checks, accidentally removed by
389fb800.  Also remove redundant test from selinux_revalidate_file_permission.

Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
Reviewed-by: Paul Moore <paul.moore@hp.com>
Acked-by: Eric Paris <eparis@redhat.com>
Signed-off-by: James Morris <jmorris@namei.org>

No differences found