types.fc
PATCH 1/1 types.fc
The attached patch against types.fc is needed by Debian, which currently supports only a single policy type. At present "make relabel" mislabels the binary policy file, which as you can probably imagine is somewhat inconvenient. ;-) The patch was generated against current CVS.
Please apply.
types.fc renamed from types.fc.orig +1 -1
@@ -307,7 +307,7 @@ /etc/security/default_contexts.* system_u:object_r:default_context_t /etc/services -- system_u:object_r:etc_t -/etc/selinux/[^/]*/policy(/.*)? system_u:object_r:policy_config_t +/etc/selinux/([^/]*/)?policy(/.*)? system_u:object_r:policy_config_t /etc/selinux/[^/]*/src(/.*)? system_u:object_r:policy_src_t /etc/selinux/[^/]*/contexts(/.*)? system_u:object_r:default_context_t /etc/selinux/[^/]*/contexts/files(/.*)? system_u:object_r:file_context_t
Quoted 4 lines · Greg Norris
The attached patch against types.fc is needed by Debian, which currently supports only a single policy type. At present "make relabel" mislabels the binary policy file, which as you can probably imagine is somewhat inconvenient. ;-) The patch was generated against current CVS.
You also need the same for the three lines that follow. I posted a patch at about the same time as your message which made the appropriate change.
But I have been considering just moving to the locations that are used in Fedora.
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 2 lines · Russell Coker
You also need the same for the three lines that follow. I posted a patch at about the same time as your message which made the appropriate change.
OK, I'll keep an eye open... it doesn't seem to have gotten here yet.
Quoted 2 lines
But I have been considering just moving to the locations that are used in Fedora.
This seems like a good idea to me. If nothing else, it would make it easier to support multiple policies in the future... should we decide to do something similar to Fedora's strict/targeted scheme. Personally, I rather like their approach.
Quoted 7 lines · Greg Norris
Quoted 2 lines
But I have been considering just moving to the locations that are used in Fedora.
This seems like a good idea to me. If nothing else, it would make it easier to support multiple policies in the future... should we decide to do something similar to Fedora's strict/targeted scheme. Personally, I rather like their approach.
The way things currently work in Debian is that the policy source files are copied to locations under /etc/selinux. This means that you can have either strict or targeted policy and just choose a different source for copying. My design for Debian always supported multiple policies, it's just that I never had time to write more than one policy and no-one else wrote one for Debian.
The advantage of the Fedora method is that you can quickly and easily switch between different policies by just changing one config file, creating a flag file, and rebooting. This allows you to easily change policies and then change back if you wish. With Debian changing policies is a significant matter to undertake and not something that you want to do often.
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.
Changed the next three /etc/selinux lines as well.
/etc/selinux/([^/]*/)?src(/.*)? system_u:object_r:policy_src_t
/etc/selinux/([^/]*/)?contexts(/.*)? system_u:object_r:default_context_t
/etc/selinux/([^/]*/)?contexts/files(/.*)? system_u:object_r:file_context_t
Quoted 13 lines · Greg Norris
Quoted 2 lines · Russell Coker
You also need the same for the three lines that follow. I posted a patch at about the same time as your message which made the appropriate change.
OK, I'll keep an eye open... it doesn't seem to have gotten here yet.
Quoted 2 lines
But I have been considering just moving to the locations that are used in Fedora.
This seems like a good idea to me. If nothing else, it would make it easier to support multiple policies in the future... should we decide to do something similar to Fedora's strict/targeted scheme. Personally, I rather like their approach.
Signature · 7 lines
James Carter <[email protected]> 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.
Merged.
Quoted 6 lines · Greg Norris
The attached patch against types.fc is needed by Debian, which currently supports only a single policy type. At present "make relabel" mislabels the binary policy file, which as you can probably imagine is somewhat inconvenient. ;-) The patch was generated against current CVS.
Please apply.
Signature · 7 lines
James Carter <[email protected]> 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.