* [PATCH] NetLabel: parse the CIPSO ranged tag on incoming packets
@ 2007-03-12 13:45 Paul Moore
2007-03-12 14:50 ` James Morris
0 siblings, 1 reply; 3+ messages in thread
From: Paul Moore @ 2007-03-12 13:45 UTC (permalink / raw)
To: netdev; +Cc: Paul Moore
[-- Attachment #1: netlabel-cipso_missing_range --]
[-- Type: text/plain, Size: 1108 bytes --]
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>
---
net/ipv4/cipso_ipv4.c | 5 +++++
1 file changed, 5 insertions(+)
Index: net-2.6_bugfix_2/net/ipv4/cipso_ipv4.c
===================================================================
--- net-2.6_bugfix_2.orig/net/ipv4/cipso_ipv4.c
+++ 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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] NetLabel: parse the CIPSO ranged tag on incoming packets
2007-03-12 13:45 [PATCH] NetLabel: parse the CIPSO ranged tag on incoming packets Paul Moore
@ 2007-03-12 14:50 ` James Morris
2007-03-12 21:37 ` David Miller
0 siblings, 1 reply; 3+ messages in thread
From: James Morris @ 2007-03-12 14:50 UTC (permalink / raw)
To: Paul Moore; +Cc: netdev, David S. Miller
On Mon, 12 Mar 2007, Paul Moore wrote:
> 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>
> ---
> net/ipv4/cipso_ipv4.c | 5 +++++
> 1 file changed, 5 insertions(+)
>
> Index: net-2.6_bugfix_2/net/ipv4/cipso_ipv4.c
> ===================================================================
> --- net-2.6_bugfix_2.orig/net/ipv4/cipso_ipv4.c
> +++ 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
>
> -
> To unsubscribe from this list: send the line "unsubscribe netdev" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
--
James Morris
<jmorris@namei.org>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] NetLabel: parse the CIPSO ranged tag on incoming packets
2007-03-12 14:50 ` James Morris
@ 2007-03-12 21:37 ` David Miller
0 siblings, 0 replies; 3+ messages in thread
From: David Miller @ 2007-03-12 21:37 UTC (permalink / raw)
To: jmorris; +Cc: paul.moore, netdev
From: James Morris <jmorris@namei.org>
Date: Mon, 12 Mar 2007 10:50:41 -0400 (EDT)
> On Mon, 12 Mar 2007, Paul Moore wrote:
>
> > 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>
Applied, thanks guys.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-03-12 21:37 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-12 13:45 [PATCH] NetLabel: parse the CIPSO ranged tag on incoming packets Paul Moore
2007-03-12 14:50 ` James Morris
2007-03-12 21:37 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox