Query MLS info outside of SELinux/LSM?
Is there a way to query the number of MLS sensitivity levels and categories outside of the SELinux LSM? I haven't seen anything, but thought I would ask before I started looking at alternatives ... which brings me to my next question - would anyone have an objection to adding this functionality?
Signature · 7 lines
paul moore linux security @ hp -- 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 · Paul Moore
Is there a way to query the number of MLS sensitivity levels and categories outside of the SELinux LSM? I haven't seen anything, but thought I would ask before I started looking at alternatives ... which brings me to my next question - would anyone have an objection to adding this functionality?
The goal is to keep information about the specific security models encapsulated in the security server (security/selinux/ss/*.c). The rest of the SELinux code then remains policy-independent, as does the rest of the kernel.
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 9 lines · Stephen Smalley
Quoted 1 line · Paul Moore
Is there a way to query the number of MLS sensitivity levels and categories outside of the SELinux LSM? I haven't seen anything, but thought I would ask before I started looking at alternatives ... which brings me to my next question - would anyone have an objection to adding this functionality?
The goal is to keep information about the specific security models encapsulated in the security server (
security/selinux/ss/*.c). The rest of the SELinux code then remains policy-independent, as does the rest of the kernel.
The only concern I have with the above statement is that in some cases, i.e. labeled networking, some of that security model information such as MLS limits is important outside the security server.
Signature · 7 lines
paul moore linux security @ hp -- 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 15 lines · Paul Moore
Quoted 8 lines · Stephen Smalley
Quoted 5 lines · Paul Moore
Is there a way to query the number of MLS sensitivity levels and categories outside of the SELinux LSM? I haven't seen anything, but thought I would ask before I started looking at alternatives ... which brings me to my next question - would anyone have an objection to adding this functionality?
Quoted 5 lines
The goal is to keep information about the specific security models encapsulated in the security server (
security/selinux/ss/*.c). The rest of the SELinux code then remains policy-independent, as does the rest of the kernel.
Quoted 3 lines
The only concern I have with the above statement is that in some cases, i.e. labeled networking, some of that security model information such as MLS limits is important outside the security server.
I think you want to generalize that kind of logic for arbitrary security labels, not just MLS, and hide it behind an abstract interface provided by the security server. Particularly since we want labeled networking to support the full security context ultimately.
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 15 lines · Stephen Smalley
Quoted 13 lines · Paul Moore
Quoted 10 lines · Stephen Smalley
Quoted 1 line · Paul Moore
Is there a way to query the number of MLS sensitivity levels and categories outside of the SELinux LSM? I haven't seen anything, but thought I would ask before I started looking at alternatives ... which brings me to my next question - would anyone have an objection to adding this functionality?
The goal is to keep information about the specific security models encapsulated in the security server (
security/selinux/ss/*.c). The rest of the SELinux code then remains policy-independent, as does the rest of the kernel.
Quoted 7 lines
Quoted 1 line
The only concern I have with the above statement is that in some cases, i.e. labeled networking, some of that security model information such as MLS limits is important outside the security server.
I think you want to generalize that kind of logic for arbitrary security labels, not just MLS, and hide it behind an abstract interface provided by the security server. Particularly since we want labeled networking to support the full security context ultimately.
Agreed. Although for most cases in SELinux there are no practical upper bounds so such logic (that I am thinking of anyway) doesn't make sense.
I was just looking for something to tell me the number of MLS levels
and categories in the current instantiated policy so I could do some optimizations in the CIPSO/NetLabel code.
It's not a big deal, there is always another solution.
Signature · 7 lines
paul moore linux security @ hp -- 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 7 lines · Paul Moore
Agreed. Although for most cases in SELinux there are no practical upper bounds so such logic (that I am thinking of anyway) doesn't make sense.
I was just looking for something to tell me the number of MLS levels
and categories in the current instantiated policy so I could do some optimizations in the CIPSO/NetLabel code.It's not a big deal, there is always another solution.
For experimental patches, you are certainly welcome to add an interface to the security server to expose such information, and export it to the rest of the kernel (see some of the recent audit-related patches and James' skfilter patches for other examples where security server interfaces are being exported to other kernel subsystems). We just don't want the MLS limitation to be the ultimate solution upstream.
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 · Paul Moore
Quoted 6 lines
Agreed. Although for most cases in SELinux there are no practical upper bounds so such logic (that I am thinking of anyway) doesn't make sense.
I was just looking for something to tell me the number of MLS
levels
and categories in the current instantiated policy so I could do some optimizations in the CIPSO/NetLabel code.
If there is a naming convention for system high you can ask for a translation of SystemHigh and look the the level and categories returned. Use of CIPSO could be dependent on certain names or aliases being available in setrans.conf.
joe
--
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 · Joe Nall
If there is a naming convention for system high you can ask for a translation of SystemHigh and look the the level and categories returned. Use of CIPSO could be dependent on certain names or aliases being available in setrans.conf.
I think he means his NetLabel kernel component, not a userspace component, so he isn't dealing with translations at all there. Just the raw kernel representation.
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 1 line · Joe Nall
If there is a naming convention for system high you can ask for a translation of SystemHigh and look the the level and categories returned. Use of CIPSO could be dependent on certain names or aliases being available in setrans.conf.
I think he means his NetLabel kernel component, not a userspace component, so he isn't dealing with translations at all there. Just the raw kernel representation.
Yep, Stephen is correct. It's academic at this point anyway as I've worked around it.
Signature · 7 lines
paul moore linux security @ hp -- 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.