Skip to content
Commit 50b2ff1b authored by Paul Moore's avatar Paul Moore Committed by David S. Miller
Browse files

netlabel: Always remove the correct address selector



The NetLabel address selector mechanism has a problem where it can get
mistakenly remove the wrong selector when similar addresses are used.  The
problem is caused when multiple addresses are configured that have different
netmasks but the same address, e.g. 127.0.0.0/8 and 127.0.0.0/24.  This patch
fixes the problem.

Reported-by: default avatarEtienne Basset <etienne.basset@numericable.fr>
Signed-off-by: default avatarPaul Moore <paul.moore@hp.com>
Acked-by: default avatarJames Morris <jmorris@namei.org>
Tested-by: default avatarEtienne Basset <etienne.basset@numericable.fr>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent cef309cf
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment