Bug 399151

Summary: alert count 1
Product: [Fedora] Fedora Reporter: Robert McLachlan <bigmacbb63>
Component: iptablesAssignee: Thomas Woerner <twoerner>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: 7CC: sconklin
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-11-26 15:56:52 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 Robert McLachlan 2007-11-26 07:13:23 UTC
Description of problem: 
selinux keeps causing problems?


Version-Release number of selected component (if applicable):
Fedora 7


How reproducible:
unknown
Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Summary
    SELinux is preventing /sbin/modprobe (insmod_t) "read write" to
    socket:[15279] (iptables_t).

Detailed Description
    SELinux denied access requested by /sbin/modprobe. It is not expected that
    this access is required by /sbin/modprobe 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
    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 http://bugzilla.redhat.com/bugzilla/enter_bug.cgi
    against this package.

Additional Information        

Source Context                user_u:system_r:insmod_t
Target Context                user_u:system_r:iptables_t
Target Objects                socket:[15279] [ rawip_socket ]
Affected RPM Packages         module-init-tools-3.3-0.pre11.1.0.fc7
                              [application]
Policy RPM                    selinux-policy-2.6.4-57.fc7
Selinux Enabled               True
Policy Type                   targeted
MLS Enabled                   True
Enforcing Mode                Enforcing
Plugin Name                   plugins.catchall
Host Name                     localhost.localdomain
Platform                      Linux localhost.localdomain 2.6.23.1-21.fc7 #1 SMP
                              Thu Nov 1 21:09:24 EDT 2007 i686 i686
Alert Count                   1
First Seen                    Sat 24 Nov 2007 09:43:02 PM PST
Last Seen                     Sat 24 Nov 2007 09:43:02 PM PST
Local ID                      1f744321-3cb1-4ac7-a0ec-22c3e98e309d
Line Numbers                  

Raw Audit Messages            

avc: denied { read, write } for comm="modprobe" dev=sockfs egid=0 euid=0
exe="/sbin/modprobe" exit=0 fsgid=0 fsuid=0 gid=0 items=0 path="socket:[15279]"
pid=3513 scontext=user_u:system_r:insmod_t:s0 sgid=0
subj=user_u:system_r:insmod_t:s0 suid=0 tclass=rawip_socket
tcontext=user_u:system_r:iptables_t:s0 tty=pts0 uid=0

Comment 1 Daniel Walsh 2007-11-26 15:16:54 UTC
This is a leaked file descriptor frpom iptables.


All file descriptors should be closed on exec

fcntl(fd, F_SETFD, FD_CLOEXEC)


Comment 2 Thomas Woerner 2007-11-26 15:56:52 UTC

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