Depends:
I propose that whenever we have a Depends: line in a policy file then we don't use an ifdef() for the policy file in question.
For example the Qmail policy has never been usable without inetd.te. The policy had numerous assumptions regarding Qmail running from inetd (no matter how you run Qmail the process that receives SMTP connections must be run by a program that is equivalent to inetd, so may as well run as inetd_t).
The 2.6 policy branch currently has some ifdef(`inetd.te' lines, this will guarantee that the policy always compiles, but does not mean that you will actually be able to use the programs. In my tree I just put in "Depends: inetd.te" instead. This will give the same result of having a compilable policy for any system which respects the Depends lines, and the policy will be shorter, easier to read and debug.
Another possibility would be to have ifdef(`inetd.te' around the entire file, because Qmail is virtually useless without inetd.
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.