question
Hi there,
Recently I started reading of selinux and I find it very useful. I'm planing
to use it for a multiuser server installation during the next 6 months. I've read most of the documents I could find and a large portion of the 'SELinux by Example' book.
No matter where I looked I did not find an answer to the following question:
When using the refpolicy, is it possible to adjust permissions without
changing the existing modules? As far as I understand, the proper way to perform changes to existing modules is to change the appropriate .te file and recompile it, but this presumes that there is only one kind of policy, one policy tree and no future upgrades. Should I create my own supplementary modules without defining any interfaces and load them?
--
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 · Stefanos Harhalakis
Hi there,
Recently I started reading of selinux and I find it very useful. I'm planing
to use it for a multiuser server installation during the next 6 months. I've read most of the documents I could find and a large portion of the 'SELinux by Example' book.
Quoted 8 lines
No matter where I looked I did not find an answer to the following question:
When using the refpolicy, is it possible to adjust permissions without
changing the existing modules? As far as I understand, the proper way to perform changes to existing modules is to change the appropriate .te file and recompile it, but this presumes that there is only one kind of policy, one policy tree and no future upgrades. Should I create my own supplementary modules without defining any interfaces and load them?
You can perform certain forms of customization without disturbing the existing policy by manipulating policy booleans (setsebool), context mappings (semanage), or generating local policy modules (but those can only allow further permissions, not take them away). More significant changes do require replacing portions of the existing policy, which is a problem for continued updates from the original policy at present. Common practice at present in e.g. Fedora is to have users generate local policy modules for their needs, but encourage them to report issues with the existing policy so that their changes can be fed back into future updates of it. I think you can expect improved support for local customization and reconciling local customizations with updates in the future.
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.