]> git.baikalelectronics.ru Git - kernel.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)
committerDavid S. Miller <davem@davemloft.net>
Thu, 7 Mar 2013 21:20:23 +0000 (16:20 -0500)
commitc00c4770fcd934135957dd06ca6ef47e221350a6
tree50cb5865bd1ffc0f92a5ee1a75cdce5cf82879b3
parentc514b4e4f73b031bd841e344e56a3bb3cf8c8d60
netlabel: correctly list all the static label mappings

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>
net/netlabel/netlabel_unlabeled.c