]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
netlabel: correctly list all the static label mappings
authorPaul Moore <pmoore@redhat.com>
Wed, 6 Mar 2013 11:45:24 +0000 (11:45 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Mar 2013 20:10:58 +0000 (13:10 -0700)
commitd99d0841478544ae82e224deb5101fec4ca2ff65
treebb4299fcae78b1e2f077f187c9dcbeb4d0003a68
parent9a6d24b60d50181ecd5d4e5484e86750e710b045
netlabel: correctly list all the static label mappings

[ Upstream commits 0c1233aba1e948c37f6dc7620cb7c253fcd71ce9 and
  a6a8fe950e1b8596bb06f2c89c3a1a4bf2011ba9 ]

When we have a large number of static label mappings that spill across
the netlink message boundary we fail to properly save our state in the
netlink_callback struct which causes us to repeat the same listings.
This patch fixes this problem by saving the state correctly between
calls to the NetLabel static label netlink "dumpit" routines.

Signed-off-by: Paul Moore <pmoore@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/netlabel/netlabel_unlabeled.c