MLS context?
What is the canonical term for the MLS part of the policy? Currently I've been using the term "MLS context" to refer to the combination of level (or range of levels) and categories (if there are any).
Is this an OK term? If not then what should I use?
Also it has to be short. I am NOT going to say "MLS range and optional categories" 100 times in the course of a talk. Two words is the maximum, if there is no canonical term for this then we need to make something up.
Also what term should I use for the human-readable version of the above as taken from /etc/mcs.conf?
Signature · 10 lines
http://www.coker.com.au/selinux/ My NSA Security Enhanced Linux packages http://www.coker.com.au/bonnie++/ Bonnie++ hard drive benchmark http://www.coker.com.au/postal/ Postal SMTP/POP benchmark http://www.coker.com.au/~russell/ My home page -- 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.
Quoted 5 lines · Russell Coker
What is the canonical term for the MLS part of the policy? Currently I've been using the term "MLS context" to refer to the combination of level (or range of levels) and categories (if there are any).
Is this an OK term? If not then what should I use?
The correct term would be the "MLS range", where:
a) the range includes a low level and a high level, with the high defaulting to the low if unspecified,
b) each level consists of a sensitivity and an optional set of categories, e.g. s0:c0,c3 is a level consisting of sensitivity s0 and category set {c0, c3}.
Quoted 6 lines
Also it has to be short. I am NOT going to say "MLS range and optional categories" 100 times in the course of a talk. Two words is the maximum, if there is no canonical term for this then we need to make something up.
Also what term should I use for the human-readable version of the above as taken from
/etc/mcs.conf?
For MCS, it could just be something like "Compartment name" or similar, as it is a translation of the compartment set to a human-readable name.
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.
Quoted 5 lines · Stephen Smalley
Quoted 4 lines · Russell Coker
What is the canonical term for the MLS part of the policy? Currently I've been using the term "MLS context" to refer to the combination of level (or range of levels) and categories (if there are any).
Quoted 8 lines
Quoted 1 line
Is this an OK term? If not then what should I use?
The correct term would be the "MLS range", where:
a) the range includes a low level and a high level, with the high defaulting to the low if unspecified,
b) each level consists of a sensitivity and an optional set of categories, e.g. s0:c0,c3 is a level consisting of sensitivity s0 and category set {c0, c3}.
I also simply use 'MLS field', as it's a field of the security context.
Quoted 5 lines
Quoted 2 lines
Also what term should I use for the human-readable version of the above as taken from
/etc/mcs.conf?For MCS, it could just be something like "Compartment name" or similar, as it is a translation of the compartment set to a human-readable name.
I've been using MCS category.
There's another use of 'compartment' which is synonymous with 'security level', so I avoid the term.
(Where security level = sensitivity + categories).
- James
Signature · 7 lines
James Morris <[email protected]> -- 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.
Quoted 6 lines · James Morris
Quoted 6 lines
Quoted 5 lines
What is the canonical term for the MLS part of the policy? Currently I've been using the term "MLS context" to refer to the combination of level (or range of levels) and categories (if there are any).
Is this an OK term? If not then what should I use?
Quoted 8 lines
Quoted 6 lines
The correct term would be the "MLS range", where:
a) the range includes a low level and a high level, with the high defaulting to the low if unspecified,
b) each level consists of a sensitivity and an optional set of categories, e.g. s0:c0,c3 is a level consisting of sensitivity s0 and category set {c0, c3}.I also simply use 'MLS field', as it's a field of the security context.
However it is two fields, the level/range and the optional categories.
Quoted 10 lines
Quoted 5 lines
Quoted 2 lines
Also what term should I use for the human-readable version of the above as taken from
/etc/mcs.conf?For MCS, it could just be something like "Compartment name" or similar, as it is a translation of the compartment set to a human-readable name.
I've been using MCS category.
There's another use of 'compartment' which is synonymous with 'security level', so I avoid the term.
True, "compartment" is used in many different contexts so using category instead makes sense. Also you have defined "MCS" as "multi-category security" not "multi-compartment security"...
Of course "MCS categories" is probably better as there are usually more than one.
Signature · 10 lines
http://www.coker.com.au/selinux/ My NSA Security Enhanced Linux packages http://www.coker.com.au/bonnie++/ Bonnie++ hard drive benchmark http://www.coker.com.au/postal/ Postal SMTP/POP benchmark http://www.coker.com.au/~russell/ My home page -- 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.
Quoted 1 line · Russell Coker
However it is two fields, the level/range and the optional categories.
No, this is a common misunderstanding. The category set is part of the _level_. A level is a sensitivity and a category set. A range is a low level and a high level. The category set is not separate from the level/range; it is part of it (and both levels in the range can have their own category set, although the high must naturally dominate the low).
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.
Quoted 6 lines · Stephen Smalley
Quoted 1 line · Russell Coker
However it is two fields, the level/range and the optional categories.
No, this is a common misunderstanding. The category set is part of the _level_. A level is a sensitivity and a category set. A range is a low level and a high level. The category set is not separate from the
OK, it's a pity that we have the same character used for delimiting fields within the identity:role:domain part and also for separating the level and categories (with a possibility of two of them if we have categories in both the low and high levels).
Signature · 9 lines
http://www.coker.com.au/selinux/ My NSA Security Enhanced Linux packages http://www.coker.com.au/bonnie++/ Bonnie++ hard drive benchmark http://www.coker.com.au/postal/ Postal SMTP/POP benchmark http://www.coker.com.au/~russell/ My home page -- 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.
Quoted 4 lines · Russell Coker
OK, it's a pity that we have the same character used for delimiting fields within the identity:role:domain part and also for separating the level and categories (with a possibility of two of them if we have categories in both the low and high levels).
It's probably not entirely too late at this stage to change this to something like:
foo_u:foo_r:foo_t:s0+c0,c1-s1+c0,c1,c2
- James
Signature · 7 lines
James Morris <[email protected]> -- 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.
Quoted 11 lines · James Morris
Quoted 4 lines · Russell Coker
OK, it's a pity that we have the same character used for delimiting fields within the identity:role:domain part and also for separating the level and categories (with a possibility of two of them if we have categories in both the low and high levels).
It's probably not entirely too late at this stage to change this to something like:
foo_u:foo_r:foo_t:s0+c0,c1-s1+c0,c1,c2
I'm not sure why we would do that. Parsing the existing context is quite straightforward.
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.
Quoted 8 lines · Stephen Smalley
Quoted 7 lines · James Morris
Quoted 4 lines · Russell Coker
OK, it's a pity that we have the same character used for delimiting fields within the identity:role:domain part and also for separating the level and categories (with a possibility of two of them if we have categories in both the low and high levels).
Quoted 7 lines
Quoted 4 lines
It's probably not entirely too late at this stage to change this to something like:
foo_u:foo_r:foo_t:s0+c0,c1-s1+c0,c1,c2
I'm not sure why we would do that. Parsing the existing context is quite straightforward.
What happens if we add another security model?
- James
Signature · 7 lines
James Morris <[email protected]> -- 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.
Quoted 1 line · James Morris
What happens if we add another security model?
MLS code can likely infer when to stop processing the context based on the content. In any event, introducing another field is a non-trivial change no matter what (consider the amount of change required just to enable MLS by default in Fedora - libsetrans translations to hide or add the level as needed, kernel hacks to provide compatibility, seusers to map Linux users to levels without needing to modify policy, extended libselinux interfaces for selecting level, ...).
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.
Quoted 10 lines · James Morris
Quoted 4 lines · Russell Coker
OK, it's a pity that we have the same character used for delimiting fields within the identity:role:domain part and also for separating the level and categories (with a possibility of two of them if we have categories in both the low and high levels).
It's probably not entirely too late at this stage to change this to something like:
foo_u:foo_r:foo_t:s0+c0,c1-s1+c0,c1,c2
Given that we are going to have programs supporting regex matching of contexts we should probably avoid characters that have meaning in a regex. So adding the use of a '+' is probably a bad idea on that count (and removing the use of '.' might be a good idea if we are going to make changes). Also having '-' and '+' in the same context is probably going to confuse some people.
It seems that the available non-regex characters are "-:=,;_~|{}%#@!&", the ones that can be used without danger are "-:=,_~{}%#@". The current uses for ':' to separate the DT fields '-' for the range, and ',' for multiple single categories are good. That leaves "=_~{}%#@".
foo_u:foo_r:foo_t:s0:c0,c1-s1:c0,c1.c2
How about replacing the above with:
foo_u:foo_r:foo_t:s0#c0,c1-s1#c0,c1%c2
Signature · 10 lines
http://www.coker.com.au/selinux/ My NSA Security Enhanced Linux packages http://www.coker.com.au/bonnie++/ Bonnie++ hard drive benchmark http://www.coker.com.au/postal/ Postal SMTP/POP benchmark http://www.coker.com.au/~russell/ My home page -- 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.
Quoted 5 lines · Stephen Smalley
Quoted 4 lines · Russell Coker
What is the canonical term for the MLS part of the policy? Currently I've been using the term "MLS context" to refer to the combination of level (or range of levels) and categories (if there are any).
Quoted 8 lines
Quoted 1 line
Is this an OK term? If not then what should I use?
The correct term would be the "MLS range", where:
a) the range includes a low level and a high level, with the high defaulting to the low if unspecified,
b) each level consists of a sensitivity and an optional set of categories, e.g. s0:c0,c3 is a level consisting of sensitivity s0 and category set {c0, c3}.
One problem with using the term "MLS range" is that it forces me to explain ranges much earlier in the discussion than I desire. Generally I only want to explain enough about MLS to allow the people in the audience to decide which of MCS and MLS is most appropriate for their needs.
Besides, I can't give a good explanation of ranges at the moment, most of the audience could not understand it in the time allotted for a typical lecture, and those who could understand such an explanation probably already know it. So I want to avoid having the discussion go there.
Quoted 3 lines · schaufler-ca.com - Casey Schaufler
Unix MLS systems use the term "Sensitivity Label"
to describe this unit of data. Some of the less
sophisticated systems also used the term
"Sensitivity Label" works for me. Logically it makes sense, it doesn't specify whether it's one or two fields, it seems to clearly describe the data in question in terms that people will understand as well as apparently being historically acceptable.
Quoted 4 lines
"MAC Label", although I doubt that is what
you would want on a system with the richer
MAC policy of SELinux. Never ever call this the
"MAC Level",
I certainly would not call such things MAC. I have recently become aware that "MAC" was known in some circles as a synonym for "MLS". I oppose such use, the "M" in "MAC" stands for Mandatory and any other interpretation makes no sense to me.
Quoted 2 lines
"Sensitivity Level", or "Security
Level". Level is the heiracrhical component.
Again, this is just sensible use of the English language.
Quoted 3 lines
In the late 1980's and early 1990's the NSA
evaluators would slap us silly anytime we
tried to use any term other than "label". I
Slapping people silly for mis-use of the English language is a good thing.
Quoted 6 lines
Quoted 3 lines
Also what term should I use for the human-readable version of the above as
taken from/etc/mcs.conf?We always called it the Sensitivity Label, too
avoid getting smacked.
However that doesn't work well. I would like to differentiate between the human readable form and the canonical form. Maybe I can just say "sensitivity label" when I don't care (or when it doesn't matter) and specify canonical or non-canonical as appropriate otherwise.
Signature · 10 lines
http://www.coker.com.au/selinux/ My NSA Security Enhanced Linux packages http://www.coker.com.au/bonnie++/ Bonnie++ hard drive benchmark http://www.coker.com.au/postal/ Postal SMTP/POP benchmark http://www.coker.com.au/~russell/ My home page -- 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.