gentoo merge for postfix
Hi,
can you please ifdef 'rhgb_domain(postfix_master_t)' since it's not part of some distros?
thanks,
peter
--
petre rodan
<[email protected]>
Developer,
Hardened Gentoo Linux
etc/security/selinux/src/policy/domains/program/postfix.te renamed from root/public_html/policy/nsa/domains/program/unused/postfix.te +3 -0
@@ -67,7 +67,10 @@ `allow system_mail_t crond_t:tcp_socket { read write create };') postfix_domain(master, `, mail_server_domain') + +ifdef(`distro_redhat', ` rhgb_domain(postfix_master_t) +') read_sysctl(postfix_master_t)
Quoted 2 lines · petre rodan
can you please ifdef '
rhgb_domain(postfix_master_t)' since it's not part of some distros?
I disagree. rhgb_domain() is a no-op if you don't use rhgb.te. Using additional ifdefs just makes the policy harder to read.
Thomas
Signature · 2 lines
http://www.cip.ifi.lmu.de/~bleher/selinux/ - my SELinux pages GPG-Fingerprint: BC4F BB16 30D6 F253 E3EA D09E C562 2BAE B2F4 ABE7
Quoted 6 lines · Thomas Bleher
Quoted 2 lines · petre rodan
can you please ifdef '
rhgb_domain(postfix_master_t)' since it's not part of some distros?I disagree.
rhgb_domain()is a no-op if you don't use rhgb.te. Using additional ifdefs just makes the policy harder to read.
That is assuming rhgb_macros.te is included. It is not included in Gentoo's policy since we never use it. I'm not going to add unneeded files to fix something thats not properly ifdef'ed.
Signature · 8 lines
Chris PeBenito <[email protected]> Developer, Hardened Gentoo Linux Embedded Gentoo Linux Public Key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xE6AF9243 Key fingerprint = B0E6 877A 883F A57A 8E6A CB00 BC8E E42D E6AF 9243
Quoted 11 lines · Chris PeBenito
Quoted 6 lines · Thomas Bleher
Quoted 2 lines · petre rodan
can you please ifdef '
rhgb_domain(postfix_master_t)' since it's not part of some distros?I disagree.
rhgb_domain()is a no-op if you don't use rhgb.te. Using additional ifdefs just makes the policy harder to read.That is assuming rhgb_macros.te is included. It is not included in Gentoo's policy since we never use it. I'm not going to add unneeded files to fix something thats not properly ifdef'ed.
If that's the approach you want to take then you should submit a patch that makes equivalent changes to can_ypbind() and lots of other macros.
The current behaviour of such macros is intentional, it is designed to make the policy smaller and easier to read. It is not an omission, it is a design decision.
It would not be difficult for you to put in a macros file that does null declarations of all the macros that you don't want in a single file, thus achieving your goal of a minimum number of macros files while not bloating the other policy.
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.