]> git.baikalelectronics.ru Git - kernel.git/commit
netlabel: fix the catmap walking functions
authorPaul Moore <pmoore@redhat.com>
Fri, 1 Aug 2014 15:17:29 +0000 (11:17 -0400)
committerPaul Moore <pmoore@redhat.com>
Fri, 1 Aug 2014 15:17:29 +0000 (11:17 -0400)
commit980ce4aa543d65e720172d4c914d3d2e7ebf08f5
tree119b2fd2674484a3228278d140f62d6d58f4aa13
parent843625c2af488d1030b48348b523529b1434f9f1
netlabel: fix the catmap walking functions

The two NetLabel LSM secattr catmap walk functions didn't handle
certain edge conditions correctly, causing incorrect security labels
to be generated in some cases.  This patch corrects these problems and
converts the functions to use the new _netlbl_secattr_catmap_getnode()
function in order to reduce the amount of repeated code.

Cc: stable@vger.kernel.org
Signed-off-by: Paul Moore <pmoore@redhat.com>
Tested-by: Casey Schaufler <casey@schaufler-ca.com>
net/netlabel/netlabel_kapi.c