login
Header Space

 
 

Re: [RFC PATCH v8 18/18] SELinux: Add network ingress and egress control permission checks

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <selinux@...>
Cc: <linux-security-module@...>, <vyekkirala@...>, <chanson@...>
Date: Sunday, December 16, 2007 - 12:47 pm

On Friday 14 December 2007 4:51:29 pm Paul Moore wrote:

I've been thinking about this over the weekend and realized a few things ...

{snip}


I realized I made a mistake here: we should check to see if the skb has a 
socket associated with it and if it does get the peer_sid from there instead.  
If there is no socket to be found then do what we are already going above.


We should probably have different permissions for the interface and node 
cases.  Take the example of an admin who is only interested in enforcing 
interface controls and not node controls.  They would most likely write the 
following policy rule to nullify the node check ...

 allow unlabeled_t peer_t:peer egress;

... which would end up applying to both the interface and node checks because 
they use the same permission.  I'm thinking we should split the permissions 
like this:

 allow netif_t peer_t:peer if_egress;
 allow netnode_t peer_t: peer node_egress;

... and do something similar for the ingress side.  Thoughts?


-- 
paul moore
linux security @ hp
-
To unsubscribe from this list: send the line "unsubscribe linux-security-module" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [RFC PATCH v8 18/18] SELinux: Add network ingress and eg..., Paul Moore, (Sun Dec 16, 12:47 pm)
speck-geostationary