]> www.infradead.org Git - users/dwmw2/linux.git/commit
selinux: Remove redundant check for unknown labeling behavior
authorMatthias Kaehlcke <mka@chromium.org>
Fri, 19 May 2017 17:09:32 +0000 (10:09 -0700)
committerSasha Levin <alexander.levin@microsoft.com>
Wed, 23 May 2018 01:33:56 +0000 (21:33 -0400)
commit9e07b5dae3b5b1245c44de25b44ea2ac65366d4e
treee73aa628f858412d4dfec4bba480e0131d36a236
parent397b40d85273391bfac9645c2436293e8a717114
selinux: Remove redundant check for unknown labeling behavior

[ Upstream commit 270e8573145a26de924e2dc644596332d400445b ]

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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
security/selinux/hooks.c