From: Paul Moore Date: Fri, 2 Mar 2007 21:19:02 +0000 (-0800) Subject: [NetLabel]: Verify sensitivity level has a valid CIPSO mapping X-Git-Tag: v2.6.21-rc3~101^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c6387a8694506841389a6ac55175a8a984ae34e4;p=pandora-kernel.git [NetLabel]: Verify sensitivity level has a valid CIPSO mapping The current CIPSO engine has a problem where it does not verify that the given sensitivity level has a valid CIPSO mapping when the "std" CIPSO DOI type is used. The end result is that bad packets are sent on the wire which should have never been sent in the first place. This patch corrects this problem by verifying the sensitivity level mapping similar to what is done with the category mapping. This patch also changes the returned error code in this case to -EPERM to better match what the category mapping verification code returns. Signed-off-by: Paul Moore Acked-by: James Morris Signed-off-by: David S. Miller --- Reading git-diff-tree failed