Bug 643824 - Policy prevents postmap if IPV6 is enabled
Summary: Policy prevents postmap if IPV6 is enabled
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: selinux-policy-targeted
Version: 5.5
Hardware: All
OS: Linux
low
medium
Target Milestone: rc
: ---
Assignee: Miroslav Grepl
QA Contact: Milos Malik
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-10-18 08:31 UTC by Klaus Steinberger
Modified: 2012-10-16 11:10 UTC (History)
3 users (show)

Fixed In Version: selinux-policy-2.4.6-288.el5
Doc Type: Bug Fix
Doc Text:
When using SELinux in the enforcing mode, the Postfix services were unable to retrieve information about the network state. With this update, the SELinux rules have been updated to allow the required access.
Clone Of:
Environment:
Last Closed: 2011-01-13 21:50:45 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2011:0026 0 normal SHIPPED_LIVE selinux-policy bug fix and enhancement update 2011-01-12 16:11:15 UTC

Description Klaus Steinberger 2010-10-18 08:31:01 UTC
Description of problem:

postmap dies with the following error:

[root@mail-internal postfix]# postmap relaydomains
postmap: warning: can't open /proc/net/if_inet6 (Permission denied) - skipping IPv6 configuration
[root@mail-internal postfix]#

This happens with "inet_protocols = all" so that IPV6 is switched on.


Version-Release number of selected component (if applicable):
selinux-policy-targeted-2.4.6-279.el5.noarch
postfix-2.3.3-2.1.el5_2.i386



How reproducible:

Always with ipv6 enabled in postfix


Steps to Reproduce:
1. switch on ipv6 in postfix
2. try postmap

  
Actual results:

[root@mail-internal postfix]# postmap relaydomains
postmap: warning: can't open /proc/net/if_inet6 (Permission denied) - skipping IPv6 configuration
[root@mail-internal postfix]#

Expected results:


Additional info:


Workaround: I created a selinux module with audit2allow:
module postfixipv6 1.0;

require {
        type postfix_map_t;
        type proc_net_t;
        class dir search;
        class file { read write getattr };
}

#============= postfix_map_t ==============
allow postfix_map_t proc_net_t:dir search;
allow postfix_map_t proc_net_t:file { read getattr };

Comment 1 Daniel Walsh 2010-10-18 15:12:15 UTC
Miroslav we have 

	kernel_read_network_state(postfix_$1_t)


In postfix_domain_template for RHEL6

Comment 3 Miroslav Grepl 2010-10-19 14:11:18 UTC
Fixed in selinux-policy-2.4.6-288.el5

Comment 6 Jaromir Hradilek 2011-01-05 16:22:10 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
When using SELinux in the enforcing mode, the Postfix services were unable to retrieve information about the network state. With this update, the SELinux rules have been updated to allow the required access.

Comment 8 errata-xmlrpc 2011-01-13 21:50:45 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2011-0026.html


Note You need to log in before you can comment on or make changes to this bug.