Bug 547927

Summary: SELinux is preventing apc_nis (munin_t) "name_connect" apcupsd_port_t.
Product: [Fedora] Fedora Reporter: cje
Component: selinux-policyAssignee: Daniel Walsh <dwalsh>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 12CC: dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:689bdf22249248281e416187e4c49620052d7208c03e74dab778e2f2f0d8f018
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-12-16 12:27:38 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description cje 2009-12-16 01:33:13 UTC
Summary:

SELinux is preventing apc_nis (munin_t) "name_connect" apcupsd_port_t.

Detailed Description:

[SELinux is in permissive mode. This access was not denied.]

SELinux denied access requested by apc_nis. It is not expected that this access
is required by apc_nis and this access may signal an intrusion attempt. It is
also possible that the specific version or configuration of the application is
causing it to require additional access.

Allowing Access:

You can generate a local policy module to allow this access - see FAQ
(http://fedora.redhat.com/docs/selinux-faq-fc5/#id2961385) Or you can disable
SELinux protection altogether. Disabling SELinux protection is not recommended.
Please file a bug report (http://bugzilla.redhat.com/bugzilla/enter_bug.cgi)
against this package.

Additional Information:

Source Context                unconfined_u:system_r:munin_t:s0
Target Context                system_u:object_r:apcupsd_port_t:s0
Target Objects                None [ tcp_socket ]
Source                        apc_nis
Source Path                   /usr/bin/perl
Port                          3551
Host                          (removed)
Source RPM Packages           perl-5.10.0-82.fc11
Target RPM Packages           
Policy RPM                    selinux-policy-3.6.12-88.fc11
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed) 2.6.30.9-90.fc11.x86_64 #1 SMP Sat Oct
                              17 11:25:35 EDT 2009 x86_64 x86_64
Alert Count                   6649
First Seen                    Tue 03 Nov 2009 15:00:15 GMT
Last Seen                     Fri 11 Dec 2009 17:25:16 GMT
Local ID                      dc8ab29a-39ec-4f82-b118-ffde26006ffe
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1260552316.805:328477): avc:  denied  { name_connect } for  pid=24431 comm="apc_nis" dest=3551 scontext=unconfined_u:system_r:munin_t:s0 tcontext=system_u:object_r:apcupsd_port_t:s0 tclass=tcp_socket

node=(removed) type=SYSCALL msg=audit(1260552316.805:328477): arch=c000003e syscall=42 success=yes exit=0 a0=3 a1=1d65e58 a2=10 a3=7fffab588bc0 items=0 ppid=23721 pid=24431 auid=500 uid=99 gid=482 euid=99 suid=99 fsuid=99 egid=482 sgid=482 fsgid=482 tty=(none) ses=6678 comm="apc_nis" exe="/usr/bin/perl" subj=unconfined_u:system_r:munin_t:s0 key=(null)



Hash String generated from  selinux-policy-3.6.12-88.fc11,catchall,apc_nis,munin_t,apcupsd_port_t,tcp_socket,name_connect
audit2allow suggests:

#============= munin_t ==============
allow munin_t apcupsd_port_t:tcp_socket name_connect;

Comment 1 Miroslav Grepl 2009-12-16 12:27:38 UTC

*** This bug has been marked as a duplicate of bug 538428 ***