Skip to contentSkip to conversation

SELinux & Linux-privs projects

Linux-privs-discuss Jesse Pollard 2 participants 2 messages Jan 12, 2001 SELinux security module

lore
Share & tools
lore
#0 lore raw

--------- Received message begins Here ---------

Quoted 13 lines
Quoted 5 lines

That is true for some security policies, not for others. POSIX is/was based on the TSEC description, which is a very black/white model. It does not support a more complex model such as a chinese wall structure.

---
No? User1 wants to access the Firm-A defense file. Runs a transition
program that adds Firm-A to the user's mac-label division list. Now any files or users that are working on Firm-B defense files (which have gone through the same transition to mac-label w/division "firm-b" added) are inaccessible to the User1. User1 is now permanently banned from firm-b files by having transitioned into a user with 'firm-a' access.

Quoted 2 lines

Seems like that implements perfectly a chinese wall /conflict of
interest model.

Not unless every possible process suddenly becomes the "transition program". The key here is that the user could just be running "more". If the user has no restrictions, then it works. Once the user HAS done more on the file, then restrictions may be imposed on the next file (depending on the conflict).

There is no need to run a special program before gaining access. No intervention by the security manager other than defining the conflict matrix in the first place.

A practical chinese wall has more complications too. A conflict is usually specified in a contract ("propriatary information not to be divulged for 5 years" type of thing). This means that the conflict exists, but only for the time interval since it was last imposed (most likely based on the modification date of the file?). After the time interval, the conflict is resolved, and the restriction removed. Even if the file is destroyed, the conflict still remains.

Existing lattice models have no structure to handle time, they all expect the state to last forever. This would help with the automatic downgrading of sensitive data, if the data could be labled with time as well as compartment/level ("not for release until after xxx hours...). These transitions currently require intervention by the security administrator, and the author (if available - he may have died... now the data may never get downgraded).

Quoted 11 lines

To my mind MAC+capabilities + a transitions config file = "domain
or type enforcement". I see the transitions file as being fairly easy to maintain.

MAC and capabilities are basic building blocks from which you can
build other security models.

I'm told you can build MAC and capabilities from DTE with
sufficient rules, and perhaps that is so, but it seems that set of rules would be considerably more complex than a "transitions" file with which to implement DTE or Chinese Wall.

The "transitions" file has no means of detecting when enforcement must take place. It has to be applied manually, and can't be done automatically since the security monitor for lattice structured systems cannot interpret it.

I grant that a DTE rule set may be more complex to define a lattice, but the intent appears to be to provide initial definitions, and explore more flexible definitions.

I would also imagine that they may be slower for really complex structures too... perhaps we are seeing an analogue to the CISC/RISC cpu archetectures from 10 years ago? Both were right, and both were wrong (and depended on the application....)

Right now, I don't fully understand the difference in implementation, other than the security monitor itself. It appears that the DTE can define how the bits are interpreted. Lattice models tend to have a fixed definition of the bits, limiting redefinition. I don't yet know if there is still a limit on the number of bits, but perhaps that is more flexible too. 32 (or even
64) bits has always seemed too limiting. It certainly should be less restrictive on the algorithm implemented for evaluation.

-------------------------------------------------------------------------
Jesse I Pollard, II
Email: [email protected]

Any opinions expressed are solely my own.

--
You have received this message because you are subscribed to the selinux 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 7 lines

Not unless every possible process suddenly becomes the "transition program".
The key here is that the user could just be running "more". If the user has no restrictions, then it works. Once the user HAS done more on the file, then restrictions may be imposed on the next file (depending on the conflict).

---
True -- what you are talking about is 'floating' labels', where
as in 'POSIX' Information labels. In a conforming implementation a subject with label "inf1" that reads an object that has "inf2" gets relabeled with the output of "float(inf1,inf2) and any written object gets the label of the process.

Using the output of the information labels to automatically
modify or add to 'mac_labels', would be an implementation-detail not covered by the POSIX spec.

Can have unintended consequences if someone who has read 'defense-A'
"su's" to root and writes /etc/passwd. But you get the idea -- a lawyer on "A" couldn't be a sysadmin. The configuration would be an implementation detail, but seems "doable".

Quoted 5 lines

There is no need to run a special program before gaining access. No intervention by the security manager other than defining the conflict matrix
in the first place.

---
Right. The 'information label' part of the posix spec was defined
to keep track of information flow.

Quoted 11 lines

A practical chinese wall has more complications too. A conflict is usually specified in a contract ("propriatary information not to be divulged for 5 years" type of thing). This means that the conflict exists, but only for the time interval since it was last imposed (most likely based on the modification date of the file?). After the time interval, the conflict is resolved, and the restriction removed. Even if the file is destroyed, the conflict still remains.

Existing lattice models have no structure to handle time, they all expect the state to last forever.

---
A pure chinese wall model doesn't have the notion of time either.

Quoted 6 lines

This would help with the automatic downgrading
of sensitive data, if the data could be labled with time as well as compartment/level ("not for release until after xxx hours...). These transitions currently require intervention by the security administrator, and the author (if available - he may have died... now the data may never get downgraded).

----
Well that may be the point. Different requirements. Most governments
would probably avoid systems that automatically declassified material w/o human intervention at the time of the declassification. The original author cannot know how long the information should remain restricted -- especially if the time interval is after the author's death. The author may not be authorized to declassify their data in the future as well as the present.

Quoted 5 lines

The "transitions" file has no means of detecting when enforcement must take place. It has to be applied manually, and can't be done automatically since the security monitor for lattice structured systems cannot interpret it.

----
Either the file is has a 'fixed' MAC label, or you can allow part
of the MAC label to float àla information labels. The difference is whether or not the user is "warned" and has to explicity change state or if they are just automatically reclassified. Personally, I think of the former as more 'useful'. I'd like to know that I'm entering down a one-way path before I've done so.

Quoted 6 lines

I would also imagine that they may be slower for really complex structures too... perhaps we are seeing an analogue to the CISC/RISC cpu archetectures
from 10 years ago? Both were right, and both were wrong (and depended on the
application....)

----
Probably a very valid point.
-l

--
You have received this message because you are subscribed to the selinux list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.