Skip to contentSkip to conversation

Question about integration of IPsec with SELinux?

DISCUSSION Park Lee 2 participants 4 messages Jun 14, 2005 – Jun 15, 2005 SELinux security module

lore
Share & tools
lore

Park Lee

author
#0 lore raw
Quoted 9 lines · Casey Schaufler

A system compares attributes of processes such as user IDs, group memberships, clearances, and domain affiliations with attributes of storage containers such as ownership, sensitivity, and access control lists to determine what accesses may be permitted. An interesting special case of this behavior is interprocess communication, in which the sending process treats the receiving process as a storage container. In the local

Quoted 8 lines

system case, where both the sending process and the receiving process are on the same machine, the attributes relevent to an access decision are available, and the IPC mechanism can make the call without special accomodation. If the processes are on different machines the IPC mechanism must provide transport of the required attributes so that the decision can be made.

Now let's suppose that processes are on different machines,
Do you mean that attributes of receiving process should be sent to the sending machine, which contains the sending process? and the access control are made on the sending machine to decide whether the sending process can do interprocess communication with its receiving process?
Can we view the sending process as a subject,and view the receiving process as an object in the interprocess communication on different machines?

If it is, let's see another situation:
We use the attributes of the sending process to label the packets which are sent by the sending process. when the packets are received on receiving machine, the receiving machine can use the attributes of the receiving process and the attributes of the packets to determine whether these packets can be received. Here, the receiving process becomes subject, and the packets which represent its sending process become objects.
Then, Does this situation become conflict with what you wrote above?

Thanks a lot.

Best Regards,
Park Lee

__________________________________
Do you Yahoo!?
Make Yahoo! your home page
http://www.yahoo.com/r/hs

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

#1 lore raw
Quoted 6 lines · --- Park Lee
Quoted 1 line · Casey Schaufler

A system compares ... the decision can be made.

Now let's suppose that processes are on different machines,

Yup.

Quoted 3 lines

Do you mean that attributes of receiving process should be sent to the sending machine, which contains the sending process?

You'd have to anticipate what attributes of what objects would be needed before you could send packets. Beyond current technology.

Quoted 4 lines

and the access control
are made on the sending machine to decide whether the sending process can do interprocess communication with its receiving process?

Again, if you could get the attributes of all the receivers onto the sender in a reliable way that would be great.

Quoted 4 lines

Can we view the sending process as a subject, and view the receiving process as an object in the interprocess communication on different machines?

Yes, although it is traditional to use the receiver side socket as the object rather than the receiving process. This is done to allow privileged processes
to set socket attributes that allow delivery of packets with attributes that would normally be disallowed.

Quoted 5 lines

If it is, let's see another situation:
We use the attributes of the sending process to label
the packets which are sent by the sending process.

This is the typical scenario.

Quoted 7 lines

when the packets are received on receiving machine, the receiving machine can use the attributes of the receiving process and the attributes
of the packets to determine whether these packets can
be received.

This is the way Unix systems using CIPSO and/or TSIG SAMP work.

Quoted 3 lines

Here, the receiving process becomes
subject, and the packets which represent its sending process become objects.

Well, not quite. In this scenario the sending process is still the subject and the receiving socket is still the object, as above. The fact that the action is taking place on the receiving machine is grossly inconvinient from an audit perspective, but otherwise completely reasonable.

Quoted 2 lines

Then, Does this situation become conflict with what you wrote above?

It certainly would be, the way you described it. The big issue here is one of commonality of policy (y'all knew I'd get to this somehow) between the two systems. It is essential that the attributes that get sent provide the right sort of information for the receiving machine to make any and all access control decisions. Of course, the easiest way to do this is to ensure that the two machines are using the same attribute set. The next easiest is to provide a mechanism for mapping (as TSIG SAMP) the attribute sets. After that, you're on your own.

An interesting background paper (referenced in some of the early flux material) on the topic was presented in 1993. It's good reading if you can find a copy. I know of no surviving electronic versions, alas. Oh, and the NSA evaluation Technical Review Board (TRB) had to go into conclave for three months to find the fatal flaw in the paper, which was evident once the TRB "clarified" their definition of an object.

S. Romero, C. Schaufler, and N. Bolyard, “BSD IPC model and policy,” in Proc. 16th National Computer Security Conference, pp. 97106, 1993

Casey Schaufler
[email protected]

__________________________________
Discover Yahoo!
Use Yahoo! to plan a weekend, have fun online and more. Check it out!
http://discover.yahoo.com/

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

author
#2 lore raw
Quoted 8 lines · Casey Schaufler
Quoted 3 lines

Do you mean that attributes of receiving process should be sent to the sending machine, which contains the sending process?

You'd have to anticipate what attributes of what objects would be needed before you could send packets. Beyond current technology.

Quoted 8 lines
Quoted 4 lines

and the access control
are made on the sending machine to decide whether the sending process can do interprocess communication with its receiving process?

Again, if you could get the attributes of all the receivers onto the sender in a reliable way that would be great.

Do you mean that now we can not achieve this with
current technology?

Quoted 11 lines
Quoted 3 lines

Here, the receiving process becomes subject, and the packets which represent its sending process become objects.

Well, not quite. In this scenario the sending process is still the subject and the receiving socket is still the object, as above. The fact that the action is taking place on the receiving machine is grossly inconvinient from an audit perspective, but otherwise completely reasonable.

Here, The receiving socket will receive packets sent by sending process. So, I think that the receiving socket is initiative, and the packets are passive on receiving machine.
Then, Would you please tell me why the sending process is still the subject and the receiving socket is still the object?

Thank you very much.

Best Regards,
Park Lee

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

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

#3 lore raw
Quoted 14 lines · --- Park Lee
Quoted 13 lines · Casey Schaufler
Quoted 3 lines

Do you mean that attributes of receiving process should be sent to the sending machine, which contains the sending process?

You'd have to anticipate what attributes of what objects would be needed before you could send packets. Beyond current technology.

Quoted 4 lines

and the access control
are made on the sending machine to decide whether the sending process can do interprocess communication with its receiving process?

Quoted 6 lines
Quoted 3 lines

Again, if you could get the attributes of all the receivers onto the sender in a reliable way that would be great.

Do you mean that now we can not achieve this with
current technology?

I mean that the sender cannot know the attributes that will be present on the receiver at the time of delivery when the packet is sent. Golly, with UDP, you don't even know (or care) if the receiver exists. You can't make the access control decision on the sender because you don't have enough information and the steps that would be required to get the information and ensure that it didn't change during the delivery process* would introduce all sorts of performance and lock contention issues.

Quoted 4 lines

Here, The receiving socket will receive packets sent by sending process. So, I think that the receiving socket is initiative, and the packets are passive on receiving machine.

A socket is not an active entity. The process associated with it is, but the process may never read the information from the socket. The packets have no volition of their own, they are the spawn of the sending process.

Quoted 5 lines

Then, Would you please tell me why the sending
process
is still the subject and the receiving socket is
still
the object?

The sending process puts information into the receiving socket. The access control decision is (on Unix MLS systems at least) made based on the attributes of the socket and the attributes of the sending process, as propogated to the receiver via CIPSO or TSIG SAMP.

------
* RFC 1149 has been implemented, after all.

Casey Schaufler
[email protected]

__________________________________
Discover Yahoo!
Get on-the-go sports scores, stock quotes, news and more. Check it out!
http://discover.yahoo.com/mobile.html

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