libsetrans and libselinux
Does it make sense to have two separate libraries for these functions?
It seems that they are both maintained by much the same group of people, will in many cases need updating at the same time, and will mostly be linked to by all the same programs, very few programs need libselinux but not libsetrans and that number is constantly decreasing and it's impossible to use libsetrans without using libselinux.
If we have a single library then there are some small optimisations that will occur, reducing load time and reducing the resident set size by a couple of pages.
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 7 lines · Russell Coker
Does it make sense to have two separate libraries for these functions?
It seems that they are both maintained by much the same group of people, will in many cases need updating at the same time, and will mostly be linked to by all the same programs, very few programs need libselinux but not libsetrans and that number is constantly decreasing and it's impossible to use libsetrans without using libselinux.
If we have a single library then there are some small optimisations that will occur, reducing load time and reducing the resident set size by a couple of pages.
The reason they are separate is so that you could build a replacement for libsetrans and use it with libselinux. The idea was someone might use the Mitre tranaslation library in place of libsetrans.
--
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 · Daniel J Walsh
Quoted 2 lines · Russell Coker
Does it make sense to have two separate libraries for these functions?
Quoted 9 lines
Quoted 5 lines
It seems that they are both maintained by much the same group of people, will in many cases need updating at the same time, and will mostly be linked to by all the same programs, very few programs need libselinux but not libsetrans and that number is constantly decreasing and it's impossible to use libsetrans without using libselinux.
If we have a single library then there are some small optimisations that will occur, reducing load time and reducing the resident set size by a couple of pages.
The reason they are separate is so that you could build a replacement for libsetrans and use it with libselinux. The idea was someone might use the Mitre tranaslation library in place of libsetrans.
The only users of libsetrans are ones that use context functions in libselinux, and several apps that link to libselinux but don't use those (such as load_policy, init, etc)
Further, IIRC libsetrans is being maintained by RH and is not in the nsa mainline cvs tree. And as Dan was saying, the whole reason for libsetrans to begin with was for drop in translation libraries (such as Mitre's)
--
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 · Joshua Brindle
The only users of libsetrans are ones that use context functions in libselinux, and several apps that link to libselinux but don't use those (such as
load_policy, init, etc)Further, IIRC libsetrans is being maintained by RH and is not in the nsa mainline cvs tree. And as Dan was saying, the whole reason for libsetrans to begin with was for drop in translation libraries (such as Mitre's)
Yes, Dan earlier proposed integrating libsetrans into libselinux IIRC, and I resisted. However, if libsetrans were made suitably generic such that it wouldn't need to be replaced entirely in order to support things like the MITRE library, then it might be reasonable to fold it into libselinux. It is true that subtle bugs and memory leaks can crop up now due to the separation.
MITRE also thought it possible that their translation library could be open sourced, if that would help. Not sure how long it would take to gain approval though...
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 7 lines · Stephen Smalley
Quoted 4 lines · Joshua Brindle
The only users of libsetrans are ones that use context functions in libselinux, and several apps that link to libselinux but don't use those (such as
load_policy, init, etc)Further, IIRC libsetrans is being maintained by RH and is not in the nsa mainline cvs tree. And as Dan was saying, the whole reason for libsetrans to begin with was for drop in translation libraries (such as Mitre's)
Quoted 8 lines
Yes, Dan earlier proposed integrating libsetrans into libselinux IIRC, and I resisted. However, if libsetrans were made suitably generic such that it wouldn't need to be replaced entirely in order to support things like the MITRE library, then it might be reasonable to fold it into libselinux. It is true that subtle bugs and memory leaks can crop up now due to the separation.
There has been some thought to making it daemon based. And allow libsetrans setup a unix_domain_socket to talk across. This would allow us to implement a daemon and eliminate the reprocessing of the file each time an application starts. Then you could just replace the daemon.
Quoted 5 lines
MITRE also thought it possible that their translation library could be open sourced, if that would help. Not sure how long it would take to gain approval though...
I thought there might be classification problems in there also?
--
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 · Daniel J Walsh
There has been some thought to making it daemon based. And allow libsetrans setup a
unix_domain_socketto talk across. This would allow us to implement a daemon and eliminate
the reprocessing of the file each time an application starts. Then you could just replace the daemon.
Right, at that point, one might want to just fold it into libselinux.
Quoted 6 lines
Quoted 5 lines
MITRE also thought it possible that their translation library could be open sourced, if that would help. Not sure how long it would take to gain approval though...
I thought there might be classification problems in there also?
Not for the library itself IIUC. Just specific configuration files that might be used.
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 · Stephen Smalley
Quoted 4 lines · Daniel J Walsh
There has been some thought to making it daemon based. And allow libsetrans setup a
unix_domain_socketto talk across. This would allow us to implement a daemon and eliminate the reprocessing of the file each time an application starts. Then you could just replace the daemon.Right, at that point, one might want to just fold it into libselinux.
I would wish to move to this new framework before we suck it in.
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
MITRE also thought it possible that their translation library could be open sourced, if that would help. Not sure how long it would take to gain approval though...
Quoted 7 lines
Quoted 2 lines
I thought there might be classification problems in there also?
Not for the library itself IIUC. Just specific configuration files that might be used.
--
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.