Re: SMACK netfilter smacklabel socket match

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Paul Moore
Date: Thursday, September 25, 2008 - 12:57 pm

On Thursday 25 September 2008 3:26:40 pm Tilman Baumann wrote:

With SELinux the packet's CIPSO label (called the packet's peer label) 
is different from the SECMARK label.  Assuming you take a similar 
approach in Smack, you should be able to implement SECMARK without 
having to every concern yourself with the CIPSO label.


Yes, in the absence of the sending socket to obtain the packet's peer 
label you need to examine the packet itself and any labeling 
information present on the packet; in the case of Smack this is CIPSO.


Well, if you are accepting or dropping packets you are applying some 
form of access control.  I thought that was the point of your patch?  
If not perhaps I misunderstood or assumed too much.


Hmmm, the term "capability" is probably not the best term to use, but 
there are valid reasons to use the netfilter mechanism, i.e. SECMARK, 
to apply a network label to both incoming and outgoing packets.  The 
idea is that this allows the LSM to make network access control 
decisions based on the network attributes of a packet (address, 
protocol, port, etc.) and the powerful packet/connection matching 
mechanisms in netfilter.


I think I understand you goal now, essentially you want to route traffic 
based on the security label of the sender, yes?  There was some brief 
talk about this at the SELinux Developer's Summit this year at OLS.  
Unfortunately, it was just a casual conversation and I haven't seen any 
patches since then implementing security label based routing.

-- 
paul moore
linux @ hp
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
SMACK netfilter smacklabel socket match, Tilman Baumann, (Thu Sep 25, 10:25 am)
Re: SMACK netfilter smacklabel socket match, Paul Moore, (Thu Sep 25, 11:26 am)
Re: SMACK netfilter smacklabel socket match, Tilman Baumann, (Thu Sep 25, 12:26 pm)
Re: SMACK netfilter smacklabel socket match, Paul Moore, (Thu Sep 25, 12:57 pm)
Re: SMACK netfilter smacklabel socket match, Tilman Baumann, (Thu Sep 25, 1:32 pm)
Re: SMACK netfilter smacklabel socket match, Casey Schaufler, (Thu Sep 25, 8:43 pm)
Re: SMACK netfilter smacklabel socket match, Tilman Baumann, (Fri Sep 26, 1:19 am)
Re: SMACK netfilter smacklabel socket match, Tilman Baumann, (Fri Sep 26, 5:35 am)
Re: SMACK netfilter smacklabel socket match, Paul Moore, (Fri Sep 26, 12:55 pm)
Re: SMACK netfilter smacklabel socket match, Casey Schaufler, (Fri Sep 26, 10:01 pm)
Re: SMACK netfilter smacklabel socket match, Tilman Baumann, (Mon Sep 29, 9:21 am)
Re: SMACK netfilter smacklabel socket match, Casey Schaufler, (Mon Sep 29, 8:29 pm)
Re: SMACK netfilter smacklabel socket match, Tilman Baumann, (Wed Oct 1, 4:29 am)
Re: SMACK netfilter smacklabel socket match, Casey Schaufler, (Wed Oct 1, 8:21 am)
Re: SMACK netfilter smacklabel socket match, Tilman Baumann, (Wed Oct 1, 9:55 am)
Re: SMACK netfilter smacklabel socket match, Casey Schaufler, (Wed Oct 1, 11:22 am)
Re: SMACK netfilter smacklabel socket match, Tilman Baumann, (Mon Oct 6, 5:57 am)
Re: SMACK netfilter smacklabel socket match, Ahmed S. Darwish, (Mon Oct 6, 4:05 pm)
Re: SMACK netfilter smacklabel socket match, Casey Schaufler, (Mon Oct 6, 7:42 pm)
Re: SMACK netfilter smacklabel socket match, Tilman Baumann, (Fri Oct 17, 9:57 am)
Re: SMACK netfilter smacklabel socket match, Casey Schaufler, (Fri Oct 17, 10:53 am)
Re: SMACK netfilter smacklabel socket match, Tilman Baumann, (Mon Oct 20, 5:06 am)
Re: SMACK netfilter smacklabel socket match, Casey Schaufler, (Mon Oct 20, 8:01 am)
Re: SMACK netfilter smacklabel socket match, Casey Schaufler, (Tue Oct 21, 8:36 pm)
Re: SMACK netfilter smacklabel socket match, Paul Moore, (Thu Oct 23, 4:55 am)
Re: SMACK netfilter smacklabel socket match, Tilman Baumann, (Thu Oct 30, 9:06 am)
Re: SMACK netfilter smacklabel socket match, Casey Schaufler, (Thu Oct 30, 8:46 pm)
Re: SMACK netfilter smacklabel socket match, Casey Schaufler, (Wed Dec 10, 5:03 pm)
Re: SMACK netfilter smacklabel socket match, Tilman Baumann, (Thu Dec 11, 3:18 am)
Re: SMACK netfilter smacklabel socket match, Casey Schaufler, (Thu Dec 11, 9:29 am)