BACKPORT: Smack: ipv6 label match fix
authorCasey Schaufler <casey@schaufler-ca.com>
Tue, 8 Nov 2016 03:01:09 +0000 (19:01 -0800)
committerRafal Krypa <r.krypa@samsung.com>
Mon, 21 Nov 2016 16:09:16 +0000 (17:09 +0100)
commit977e9bc8890868e55691412ac7cb3202a4aa36cd
tree60d06a4575c70db5e711b452d163323b53458c1b
parent7d2f587340b2304547d3f18f141315cbfb025a02
BACKPORT: Smack: ipv6 label match fix

The check for a deleted entry in the list of IPv6 host
addresses was being performed in the wrong place, leading
to most peculiar results in some cases. This puts the
check into the right place.

Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
(cherry-picked from upstream 2e4939f7026f938a1dc81533d020801198562804)
security/smack/smack_lsm.c