selinux: don't revalidate an inode's label when explicitly setting it
authorPaul Moore <paul@paul-moore.com>
Tue, 19 Apr 2016 20:36:28 +0000 (16:36 -0400)
committerPaul Moore <paul@paul-moore.com>
Tue, 19 Apr 2016 20:36:28 +0000 (16:36 -0400)
commit2c97165befb487c0dc8b25d39f457d0d91d22a6f
tree86eacae3ab34a8f15d3d1eae178da47c245d4b6c
parent0fd71a620be8648486a126fccadf9f7c2a818676
selinux: don't revalidate an inode's label when explicitly setting it

There is no point in attempting to revalidate an inode's security
label when we are in the process of setting it.

Reported-by: Stephen Smalley <sds@tycho.nsa.gov>
Signed-off-by: Paul Moore <paul@paul-moore.com>
security/selinux/hooks.c