Bug 624378

Summary: SELinux is preventing /usr/sbin/ulogd "create" access .
Product: [Fedora] Fedora Reporter: Joseph D. Wagner <joe>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 13CC: dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:9ae8ff13077b297526a7255072c3a6a5974484e92271095aea9cfaa17233a5f7
Fixed In Version: selinux-policy-3.7.19-49.fc13 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-08-24 21:13:03 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 Joseph D. Wagner 2010-08-16 08:31:08 UTC
Summary:

SELinux is preventing /usr/sbin/ulogd "create" access .

Detailed Description:

[ulogd has a permissive type (ulogd_t). This access was not denied.]

SELinux denied access requested by ulogd. It is not expected that this access is
required by ulogd 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                system_u:system_r:ulogd_t:s0
Target Context                system_u:system_r:ulogd_t:s0
Target Objects                None [ netlink_route_socket ]
Source                        ulogd
Source Path                   /usr/sbin/ulogd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           ulogd-1.24-13.fc12
Target RPM Packages           
Policy RPM                    selinux-policy-3.7.19-44.fc13
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed)
                              2.6.33.6-147.2.4.fc13.x86_64 #1 SMP Fri Jul 23
                              17:14:44 UTC 2010 x86_64 x86_64
Alert Count                   2
First Seen                    Mon 16 Aug 2010 12:49:23 AM PDT
Last Seen                     Mon 16 Aug 2010 01:16:20 AM PDT
Local ID                      2d347266-7fd5-4366-af90-6733fe2b2fa6
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1281946580.193:23924): avc:  denied  { create } for  pid=9688 comm="ulogd" scontext=system_u:system_r:ulogd_t:s0 tcontext=system_u:system_r:ulogd_t:s0 tclass=netlink_route_socket

node=(removed) type=SYSCALL msg=audit(1281946580.193:23924): arch=c000003e syscall=41 success=yes exit=4294967424 a0=10 a1=3 a2=0 a3=1538 items=0 ppid=9687 pid=9688 auid=500 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=pts3 ses=1 comm="ulogd" exe="/usr/sbin/ulogd" subj=system_u:system_r:ulogd_t:s0 key=(null)



Hash String generated from  catchall,ulogd,ulogd_t,ulogd_t,netlink_route_socket,create
audit2allow suggests:

#============= ulogd_t ==============
allow ulogd_t self:netlink_route_socket create;

Comment 1 Miroslav Grepl 2010-08-16 12:54:34 UTC
Dan,
we need to add

allow ulogd_t self:netlink_route_socket r_netlink_socket_perms;

files_read_etc_files(ulogd_t)
files_read_usr_files(ulogd_t)

optional_policy(`
        mysql_stream_connect(ulogd_t)
')

optional_policy(`
        postgresql_stream_connect(ulogd_t)
')

Comment 2 Miroslav Grepl 2010-08-18 11:20:57 UTC
Fixed in selinux-policy-3.7.19-48.fc13

Comment 3 Fedora Update System 2010-08-20 13:01:49 UTC
selinux-policy-3.7.19-49.fc13 has been submitted as an update for Fedora 13.
http://admin.fedoraproject.org/updates/selinux-policy-3.7.19-49.fc13

Comment 4 Fedora Update System 2010-08-21 04:33:39 UTC
selinux-policy-3.7.19-49.fc13 has been pushed to the Fedora 13 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update selinux-policy'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/selinux-policy-3.7.19-49.fc13

Comment 5 Joseph D. Wagner 2010-08-21 16:19:40 UTC
This appears to solve some of the ulogd denials, but not all of them.  Bug report filed for message that remains.
https://bugzilla.redhat.com/show_bug.cgi?id=626047

Comment 6 Fedora Update System 2010-08-24 21:12:27 UTC
selinux-policy-3.7.19-49.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.