Bug 731222

Summary: SELinux is preventing /sbin/iptables-multi "getopt" access .
Product: [Fedora] Fedora Reporter: jpgorrono
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 12CC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:58e8ee7049cff267d9d2d68aa50403b2a5ad43abcca354fddc03d344d975b327
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-08-17 11:53:58 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 jpgorrono 2011-08-17 02:42:40 UTC
Summary:

SELinux is preventing /sbin/iptables-multi "getopt" access .

Detailed Description:

[iptables has a permissive type (cobblerd_t). This access was not denied.]

SELinux denied access requested by iptables. It is not expected that this access
is required by iptables 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://docs.fedoraproject.org/selinux-faq-fc5/#id2961385) Please file a bug
report.

Additional Information:

Source Context                unconfined_u:system_r:cobblerd_t:s0
Target Context                unconfined_u:system_r:cobblerd_t:s0
Target Objects                None [ rawip_socket ]
Source                        iptables
Source Path                   /sbin/iptables-multi
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           iptables-1.4.5-1.fc12
Target RPM Packages           
Policy RPM                    selinux-policy-3.6.32-127.fc12
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed) 2.6.32.26-175.fc12.x86_64
                              #1 SMP Wed Dec 1 21:39:34 UTC 2010 x86_64 x86_64
Alert Count                   5
First Seen                    Wed 18 May 2011 07:09:26 PM PDT
Last Seen                     Wed 18 May 2011 07:13:22 PM PDT
Local ID                      56eacc30-3aba-4efa-bb0f-ca000c15ba37
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1305771202.169:1126): avc:  denied  { getopt } for  pid=17333 comm="iptables" lport=255 scontext=unconfined_u:system_r:cobblerd_t:s0 tcontext=unconfined_u:system_r:cobblerd_t:s0 tclass=rawip_socket

node=(removed) type=SYSCALL msg=audit(1305771202.169:1126): arch=c000003e syscall=55 success=yes exit=0 a0=3 a1=0 a2=40 a3=7fff00917e10 items=0 ppid=17323 pid=17333 auid=500 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=2 comm="iptables" exe="/sbin/iptables-multi" subj=unconfined_u:system_r:cobblerd_t:s0 key=(null)



Hash String generated from  catchall,iptables,cobblerd_t,cobblerd_t,rawip_socket,getopt
audit2allow suggests:

#============= cobblerd_t ==============
allow cobblerd_t self:rawip_socket getopt;

Comment 1 jpgorrono 2011-08-17 02:45:54 UTC
This occurred during boot....after a force poweroff

Comment 2 Daniel Walsh 2011-08-17 11:53:58 UTC
Unsupported OS please update to F14 or later.