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
--