Skip to contentSkip to conversation

TE for networked resources

DISCUSSION shahbaz khan 3 participants 8 messages Aug 16, 2007 SELinux security module

lore
Share & tools
lore
#0 lore raw

I was curious while reading Brindle et al paper on enhancing selinux policy for network domain that do we really need TE for these remote resources. Can't we just do with IBAC and RBAC? We can let the local subjects handle the TE with their own types with respect to the IBAC and RBAC of remote subject. This might be what they call equivalence mechanism. The problems associated with TE are too tough for selinux and current network controls to handle. The solutions will cost too much.

Is there any progress on this work. Let me know because I have also working on this and might be able to assist.

Signature · 1 line
Shaz
#1 lore raw
Quoted 8 lines · shahbaz khan

I was curious while reading Brindle et al paper on enhancing selinux policy for network domain that do we really need TE for these remote resources. Can't we just do with IBAC and RBAC? We can let the local subjects handle the TE with their own types with respect to the IBAC and RBAC of remote subject. This might be what they call equivalence mechanism. The problems associated with TE are too tough for selinux and current network controls to handle. The solutions will cost too much.

User identity and role doesn't convey enough information - you lose the binding to the actual program/code. Which matters. You want to be able to allow a given component to interact with another component specifically, not any arbitrary process running with a given user identity or role.

Quoted 2 lines

Is there any progress on this work. Let me know because I have also working on this and might be able to assist.

Signature · 8 lines
Stephen Smalley
National Security Agency


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
#2 lore raw
Quoted 10 lines · Stephen Smalley
Quoted 8 lines · shahbaz khan

I was curious while reading Brindle et al paper on enhancing selinux policy for network domain that do we really need TE for these remote resources. Can't we just do with IBAC and RBAC? We can let the local subjects handle the TE with their own types with respect to the IBAC and RBAC of remote subject. This might be what they call equivalence mechanism. The problems associated with TE are too tough for selinux and current network controls to handle. The solutions will cost too much.

Quoted 5 lines

User identity and role doesn't convey enough information - you lose the binding to the actual program/code. Which matters. You want to be able to allow a given component to interact with another component specifically, not any arbitrary process running with a given user identity or role.

I think this arbitration can be solved with iptables' rules. A local to remote port restriction. And further hardened with port labels. Will the label of ports not be enough? At the required points we still have TE.

TE definitely gives a security granularity at the program/code level but it is being taken care of by the local system. If the local system ensures it till its boundaries then the remote subject, handling the requests, can contain the security problems with its own context and identity and role of the remote subject.

Sacrificing of the code binding at the cost of reasonable reduction in complexity, where code binding is mandatory in the boundaries of computer system but between two systems very little is lost. In the boundaries of the local system a malicious code cannot get executed with the right policy and if it does how can TE help to contain it from the remote system if TE attribute is considered on the remote side? I think identity and role are enough to contain it on the remote side. The tradeoff will only broaden risks for the data of that role and identity because it will not consider its types. Here identity serves as the level of granularity in a specific role.

Secondly, with SECMARK and IPSEC associations we do pass on the TE attribute in context. For extra sensitive applications and services, TE can be considered which means we still reduce the penalty of complexity in policy maintenance.
Shaz

Quoted 7 lines
Quoted 2 lines

Is there any progress on this work. Let me know because I have also working on this and might be able to assist.

--
Stephen Smalley
National Security Agency

#3 lore raw
Quoted 27 lines · shahbaz khan

On 8/17/07, Stephen Smalley <[email protected] > wrote:
On Thu, 2007-08-16 at 23:47 +0500, shahbaz khan wrote:
> I was curious while reading Brindle et al paper on enhancing selinux
> policy for network domain that do we really need TE for these remote
> resources. Can't we just do with IBAC and RBAC? We can let the local
> subjects handle the TE with their own types with respect to the IBAC
> and RBAC of remote subject. This might be what they call equivalence
> mechanism. The problems associated with TE are too tough for selinux
> and current network controls to handle. The solutions will cost too
> much.

User identity and role doesn't convey enough information - you lose the
binding to the actual program/code. Which matters. You want to be able
to allow a given component to interact with another component specifically, not any arbitrary process running with a given user
identity or role.

Quoted 4 lines

I think this arbitration can be solved with iptables' rules. A local to remote port restriction. And further hardened with port labels. Will the label of ports not be enough? At the required points we still have TE.

No, ports aren't adequate for identifying the components. Think client side ports and also think dynamic port assignment (ala portmap).

Quoted 32 lines

TE definitely gives a security granularity at the program/code level but it is being taken care of by the local system. If the local system ensures it till its boundaries then the remote subject, handling the requests, can contain the security problems with its own context and identity and role of the remote subject.

Sacrificing of the code binding at the cost of reasonable reduction in complexity, where code binding is mandatory in the boundaries of computer system but between two systems very little is lost. In the boundaries of the local system a malicious code cannot get executed with the right policy and if it does how can TE help to contain it from the remote system if TE attribute is considered on the remote side? I think identity and role are enough to contain it on the remote side. The tradeoff will only broaden risks for the data of that role and identity because it will not consider its types. Here identity serves as the level of granularity in a specific role.

Secondly, with SECMARK and IPSEC associations we do pass on the TE attribute in context. For extra sensitive applications and services, TE can be considered which means we still reduce the penalty of complexity in policy maintenance.

Shaz

> Is there any progress on this work. Let me know because I have also
> working on this and might be able to assist.

--
Stephen Smalley
National Security Agency

Signature · 8 lines
Stephen Smalley
National Security Agency


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
#4 lore raw
Quoted 29 lines · Stephen Smalley
Quoted 27 lines · shahbaz khan

On 8/17/07, Stephen Smalley <[email protected] > wrote:
On Thu, 2007-08-16 at 23:47 +0500, shahbaz khan wrote:
> I was curious while reading Brindle et al paper on enhancing selinux
> policy for network domain that do we really need TE for these remote
> resources. Can't we just do with IBAC and RBAC? We can let the local
> subjects handle the TE with their own types with respect to the IBAC
> and RBAC of remote subject. This might be what they call equivalence
> mechanism. The problems associated with TE are too tough for selinux
> and current network controls to handle. The solutions will cost too
> much.

User identity and role doesn't convey enough information - you lose the
binding to the actual program/code. Which matters. You want to be able
to allow a given component to interact with another component specifically, not any arbitrary process running with a given user
identity or role.

Quoted 7 lines
Quoted 4 lines

I think this arbitration can be solved with iptables' rules. A local to remote port restriction. And further hardened with port labels. Will the label of ports not be enough? At the required points we still have TE.

No, ports aren't adequate for identifying the components. Think client side ports and also think dynamic port assignment (ala portmap).

What about netfilter's connection tracking feature for dynamic port assignment where labels can be passed to related ports?
We assume that the client is part of the network domain because we also need to distribute the policy. Thus, the security admin has access to set iptables and only he is allowed to do so.
Let me check on portmap. But it is'nt an issue as much as I can comprehend at this time.

Shaz.

Quoted 37 lines

TE definitely gives a security granularity at the program/code level

Quoted 24 lines

but it is being taken care of by the local system. If the local system ensures it till its boundaries then the remote subject, handling the requests, can contain the security problems with its own context and identity and role of the remote subject.

Sacrificing of the code binding at the cost of reasonable reduction in complexity, where code binding is mandatory in the boundaries of computer system but between two systems very little is lost. In the boundaries of the local system a malicious code cannot get executed with the right policy and if it does how can TE help to contain it from the remote system if TE attribute is considered on the remote side? I think identity and role are enough to contain it on the remote side. The tradeoff will only broaden risks for the data of that role and identity because it will not consider its types. Here identity serves as the level of granularity in a specific role.

Secondly, with SECMARK and IPSEC associations we do pass on the TE attribute in context. For extra sensitive applications and services, TE can be considered which means we still reduce the penalty of complexity in policy maintenance.

Shaz

Quoted 7 lines

> Is there any progress on this work. Let me know because I have also
> working on this and might be able to assist.

--
Stephen Smalley
National Security Agency

--
Stephen Smalley
National Security Agency

#5 lore raw
Quoted 39 lines · shahbaz khan
Quoted 35 lines · Stephen Smalley
Quoted 32 lines · shahbaz khan

On 8/17/07, Stephen Smalley < [email protected] > wrote:
On Thu, 2007-08-16 at 23:47 +0500, shahbaz khan wrote:
> I was curious while reading Brindle et al paper on enhancing selinux
> policy for network domain that do we really need TE for these remote
> resources. Can't we just do with IBAC and RBAC? We can let the local
> subjects handle the TE with their own types with respect to the IBAC
> and RBAC of remote subject. This might be what they call equivalence
> mechanism. The problems associated with TE are too tough for selinux
> and current network controls to handle. The solutions will cost too
> much.

User identity and role doesn't convey enough information - you

lose the
binding to the actual program/code. Which matters. You want to be able
to allow a given component to interact with another component specifically, not any arbitrary process running with a given user
identity or role.

I think this arbitration can be solved with iptables' rules. A local to remote port restriction. And further hardened with port labels. Will the label of ports not be enough? At the required points we still have TE.

Quoted 7 lines
Quoted 2 lines

No, ports aren't adequate for identifying the components. Think client side ports and also think dynamic port assignment (ala portmap).

What about netfilter's connection tracking feature for dynamic port assignment where labels can be passed to related ports?

Ephemeral ports assignment i.e. random port assignment, is a problem if the program is not already bind()'ed. Correct me if I am wrong. This is also an issue which selinux needs to address as well. Again its not that difficult to handle.

We assume that the client is part of the network domain because we also

Quoted 47 lines

need to distribute the policy. Thus, the security admin has access to set iptables and only he is allowed to do so.
Let me check on portmap. But it is'nt an issue as much as I can comprehend at this time.

Shaz.

Quoted 40 lines

TE definitely gives a security granularity at the program/code level

Quoted 27 lines

but it is being taken care of by the local system. If the local system

ensures it till its boundaries then the remote subject, handling the requests, can contain the security problems with its own context and identity and role of the remote subject.

Sacrificing of the code binding at the cost of reasonable reduction in

complexity, where code binding is mandatory in the boundaries of computer system but between two systems very little is lost. In the boundaries of the local system a malicious code cannot get executed with the right policy and if it does how can TE help to contain it from the remote system if TE attribute is considered on the remote side? I think identity and role are enough to contain it on the remote

side. The tradeoff will only broaden risks for the data of that role and identity because it will not consider its types. Here identity serves as the level of granularity in a specific role.

Secondly, with SECMARK and IPSEC associations we do pass on the TE attribute in context. For extra sensitive applications and services, TE can be considered which means we still reduce the penalty of complexity in policy maintenance.

Shaz

Quoted 7 lines

> Is there any progress on this work. Let me know because I have also
> working on this and might be able to assist.

--
Stephen Smalley
National Security Agency

--
Stephen Smalley
National Security Agency

#6 lore raw
In reply to shahbaz khan
Quoted 2 lines · shahbaz khan

I was curious while reading Brindle et al paper on enhancing selinux policy for network domain that do we really need TE for these remote resources. Can't we just do with IBAC and RBAC? We can let the local subjects handle the TE with their own types with respect to the IBAC and RBAC of remote subject. This might be what they call equivalence mechanism. The problems associated with TE are too tough for selinux and current network controls to handle. The solutions will cost too much.

Like Steve said, we want to be able to bind executable code to domains most of the time. However, the scheme we proposed leaves the translation layer vague intentionally. There is nothing that prevents you from making a translation server that only uses IBAC and RBAC. One potential use of this is interacting with non-TE security systems.

Quoted 1 line

Is there any progress on this work. Let me know because I have also working on this and might be able to assist.

Not as of late. We have the iptools patches in svn but other than that nothing much has happened.

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.

#7 lore raw
Quoted 11 lines · Joshua Brindle
Quoted 9 lines · shahbaz khan

I was curious while reading Brindle et al paper on enhancing selinux policy for network domain that do we really need TE for these remote resources. Can't we just do with IBAC and RBAC? We can let the local subjects handle the TE with their own types with respect to the IBAC and RBAC of remote subject. This might be what they call equivalence mechanism. The problems associated with TE are too tough for selinux and current network controls to handle. The solutions will cost too much.

Quoted 5 lines

Like Steve said, we want to be able to bind executable code to domains most of the time. However, the scheme we proposed leaves the translation layer vague intentionally. There is nothing that prevents you from making a translation server that only uses IBAC and RBAC. One potential use of this is interacting with non-TE security systems.

What if we centralize the user and roles and propagate them through Policy Server? This is a vaguely structured question but you will understand the possibilities. I can see an ease of management and analysis here. Consider a centralize policy at the same place for atleast the shared resources.

Quoted 7 lines

Is there any progress on this work. Let me know because I have also

Quoted 1 line

working on this and might be able to assist.

Not as of late. We have the iptools patches in svn but other than that nothing much has happened.

Signature · 6 lines
Shaz
Research Associate,
IMSciences, Peshawar,
Pakistan.
Email: [email protected]
cell: +92 91 0300 5944647