]> git.baikalelectronics.ru Git - kernel.git/commit
netlabel: Fix a problem when dumping the default IPv6 static labels
authorPaul Moore <paul.moore@hp.com>
Sat, 28 Jun 2008 03:12:32 +0000 (20:12 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 28 Jun 2008 03:12:32 +0000 (20:12 -0700)
commitd935b801913a9893df615905a5a22a8cdc0d106f
treeda7fb7007e05fb4b22c94408ab4b9dc279a81d4c
parent9fe6c06909a94edfec1ca45fea816f7d35502732
netlabel: Fix a problem when dumping the default IPv6 static labels

There is a missing "!" in a conditional statement which is causing entries to
be skipped when dumping the default IPv6 static label entries.  This can be
demonstrated by running the following:

 # netlabelctl unlbl add default address:::1 \
                                 label:system_u:object_r:unlabeled_t:s0
 # netlabelctl -p unlbl list

... you will notice that the entry for the IPv6 localhost address is not
displayed but does exist (works correctly, causes collisions when attempting
to add duplicate entries, etc.).

Signed-off-by: Paul Moore <paul.moore@hp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netlabel/netlabel_unlabeled.c