]> git.karo-electronics.de Git - karo-tx-linux.git/commit
NetLabel: Verify sensitivity level has a valid CIPSO mapping
authorPaul Moore <paul.moore@hp.com>
Mon, 12 Mar 2007 14:33:12 +0000 (09:33 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 23 Mar 2007 19:49:21 +0000 (12:49 -0700)
commit0065572ae6662a3b53fa4f8beb4feab61114590c
tree8d8502a7049abf7e9d45cfbddb7cddccd9bc1e88
parentb09bfe3601682228d9b4612a0266359df9710791
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 <paul.moore@hp.com>
Acked-by: James Morris <jmorris@namei.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/ipv4/cipso_ipv4.c