From d960a6184a92c8da70d26355bfcb5bd8ad637743 Mon Sep 17 00:00:00 2001 From: Paul Moore Date: Fri, 1 Aug 2014 11:17:29 -0400 Subject: [PATCH] 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 Tested-by: Casey Schaufler --- Reading git-format-patch failed