Skip to contentSkip to conversation

NetLabel: parse the CIPSO ranged tag on incoming packets

PATCH Applied Paul Moore 3 participants 3 messages Mar 12, 2007

Subsystems (3)
lore
Share & tools
lore

Paul Moore

author
#0 lore raw

PATCH 1/1 NetLabel: parse the CIPSO ranged tag on incoming packets

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.

---
 net/ipv4/cipso_ipv4.c |    5 +++++
 1 file changed, 5 insertions(+)
net/ipv4/cipso_ipv4.c +5 -0
Index: net-2.6_bugfix_2/net/ipv4/cipso_ipv4.c
===================================================================
@@ -1933,6 +1933,11 @@ int cipso_v4_skbuff_getattr(const struct
 						 &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:

--
paul moore
linux security @ hp

Acked-by on v1 1/1
#1 lore raw
Quoted 10 lines · Paul Moore

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.

Quoted 30 lines
---
 net/ipv4/cipso_ipv4.c |    5 +++++
 1 file changed, 5 insertions(+)

Index: net-2.6_bugfix_2/net/ipv4/cipso_ipv4.c
===================================================================

net/ipv4/cipso_ipv4.c +5 -1
@@ -1933,6 +1933,11 @@ int cipso_v4_skbuff_getattr(const struct
 						 &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:
 
--

paul moore
linux security @ hp

-
To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Signature · 2 lines
James Morris
<[email protected]>
maintainer Applied
#2 lore raw

From: James Morris <[email protected]>
Date: Mon, 12 Mar 2007 10:50:41 -0400 (EDT)

Quoted 9 lines · Paul Moore
Quoted 8 lines

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.

Quoted 5 lines
Quoted 3 lines

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

Applied, thanks guys.