selinux: Remove redundant check for unknown labeling behavior
authorMatthias Kaehlcke <mka@chromium.org>
Fri, 19 May 2017 17:09:32 +0000 (10:09 -0700)
committerPaul Moore <paul@paul-moore.com>
Tue, 23 May 2017 14:24:06 +0000 (10:24 -0400)
commit270e8573145a26de924e2dc644596332d400445b
treeac3278c5a14e41e36b8b2a8918d2194be85c45a1
parent4dc2fce342f8e5b165e2eda29a39446bb07b2457
selinux: Remove redundant check for unknown labeling behavior

The check is already performed in ocontext_read() when the policy is
loaded. Removing the array also fixes the following warning when
building with clang:

security/selinux/hooks.c:338:20: error: variable 'labeling_behaviors'
    is not needed and will not be emitted
    [-Werror,-Wunneeded-internal-declaration]

Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
Acked-by: Stephen Smalley <sds@tycho.nsa.gov>
Signed-off-by: Paul Moore <paul@paul-moore.com>
security/selinux/hooks.c