[NetLabel]: parse the CIPSO ranged tag on incoming packets
authorPaul Moore <paul.moore@hp.com>
Mon, 12 Mar 2007 21:38:02 +0000 (14:38 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 12 Mar 2007 21:38:02 +0000 (14:38 -0700)
Commit 484b366932be0b73a22c74a82748ca10a721643e added support for the CIPSO
ranged categories tag.  However, it appears that I made a mistake when rebasing
then patch to the latest upstream sources for submission and dropped the part
of the patch that actually parses the tag on incoming packets.  This patch
fixes this mistake by adding the required function call to the
cipso_v4_skbuff_getattr() function.

I've run this patch over the weekend and have not noticed any problems.

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>
net/ipv4/cipso_ipv4.c

index c976dd7e9758f5e4fbf9f0cfe38c0e68002154c1..2ce5b693a8bd4a213847ba65de9e79feda0dfc4b 100644 (file)
@@ -1933,6 +1933,11 @@ int cipso_v4_skbuff_getattr(const struct sk_buff *skb,
                                                 &cipso_ptr[6],
                                                 secattr);
                break;
+       case CIPSO_V4_TAG_RANGE:
+               ret_val = cipso_v4_parsetag_rng(doi_def,
+                                               &cipso_ptr[6],
+                                               secattr);
+               break;
        }
 
 skbuff_getattr_return: