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:02:12 +0000 (17:02 +0100)
commitcfbdcde29125392aa1343965ef017808610c7fbf
treec29ed8d73e88ad6a69fe4d7596df3358f81eaa88
parentecb007d924a481408060ab0dd5e30d5839cd9c8d
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