netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC] Wild and crazy ideas involving struct sk_buff
@ 2007-08-22 20:31 Paul Moore
  2007-08-22 21:08 ` David Miller
  2007-08-22 21:20 ` Thomas Graf
  0 siblings, 2 replies; 10+ messages in thread
From: Paul Moore @ 2007-08-22 20:31 UTC (permalink / raw)
  To: netdev

Over in LSM/SELinux land there has been a lot of talk recently about how to 
deal with loopback and forwarded traffic, specifically, how to preserve the 
sender's security label on those two types of traffic.  Yes, there is the 
existing sk_buff.secmark field but that is already being used for something 
else and utilizing it for this purpose has it's pros/cons.

We're currently talking about several different ideas to solve the problem, 
including leveraging the sk_buff.secmark field, and one of the ideas was to 
add an additional field to the sk_buff structure.  Knowing how well that idea 
would go over (lead balloon is probably an understatement at best) I started 
looking at what I might be able to remove from the sk_buff struct to make 
room for a new field (the new field would be a u32).  Looking at the sk_buff 
structure it appears that the sk_buff.dev and sk_buff.iif fields are a bit 
redundant and removing the sk_buff.dev field could free 32/64 bits depending 
on the platform.  Is there any reason (performance?) for keeping the 
sk_buff.dev field around?  Would the community be open to patches which 
removed it and transition users over to the sk_buff.iif field?  Finally, 
assuming the sk_buff.dev field was removed, would the community be open to 
adding a new LSM/SELinux related u32 field to the sk_buff struct?

Thanks.
 
-- 
paul moore
linux security @ hp

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2007-08-22 22:31 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-22 20:31 [RFC] Wild and crazy ideas involving struct sk_buff Paul Moore
2007-08-22 21:08 ` David Miller
2007-08-22 21:23   ` Paul Moore
2007-08-22 21:20 ` Thomas Graf
2007-08-22 21:26   ` Paul Moore
2007-08-22 21:36     ` David Miller
2007-08-22 22:06       ` Arnaldo Carvalho de Melo
2007-08-22 22:09       ` James Morris
2007-08-22 22:20         ` Paul Moore
2007-08-22 22:31           ` James Morris

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).