Bug 638154

Summary: SELinux is preventing /sbin/setfiles "sendto" access on /dev/log.
Product: [Fedora] Fedora Reporter: Mads Kiilerich <mads>
Component: selinux-policyAssignee: Daniel Walsh <dwalsh>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 14CC: dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:4abf1779b9fd43164efc35adad04e42c4c4adf200c6c49f12364d81c316a6521
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-09-28 15:49:46 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 Mads Kiilerich 2010-09-28 12:02:14 UTC
Summary:

SELinux is preventing /sbin/setfiles "sendto" access on /dev/log.

Detailed Description:

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

SELinux denied access requested by setfiles. It is not expected that this access
is required by setfiles 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 (removed) 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:abrt_helper_t:s0-s0:c0.c1023
Target Context                system_u:system_r:kernel_t:s0
Target Objects                /dev/log [ unix_dgram_socket ]
Source                        setfiles
Source Path                   /sbin/setfiles
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           policycoreutils-2.0.83-28.fc14
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.5-7.fc14
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed) 2.6.35.4-28.fc14.i686.PAE #1 SMP Wed
                              Sep 15 01:57:00 UTC 2010 i686 i686
Alert Count                   1
First Seen                    Tue 28 Sep 2010 01:53:22 PM CEST
Last Seen                     Tue 28 Sep 2010 01:53:22 PM CEST
Local ID                      50c90e02-04a6-4f3d-b878-175834626618
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1285674802.122:344): avc:  denied  { sendto } for  pid=2851 comm="setfiles" path="/dev/log" scontext=unconfined_u:system_r:abrt_helper_t:s0-s0:c0.c1023 tcontext=system_u:system_r:kernel_t:s0 tclass=unix_dgram_socket

node=(removed) type=SYSCALL msg=audit(1285674802.122:344): arch=40000003 syscall=102 success=yes exit=123 a0=9 a1=bfd4a538 a2=29eff4 a3=5bbcf20 items=0 ppid=2728 pid=2851 auid=501 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=pts0 ses=1 comm="setfiles" exe="/sbin/setfiles" subj=unconfined_u:system_r:abrt_helper_t:s0-s0:c0.c1023 key=(null)



Hash String generated from  catchall,setfiles,abrt_helper_t,kernel_t,unix_dgram_socket,sendto
audit2allow suggests:

#============= abrt_helper_t ==============
allow abrt_helper_t kernel_t:unix_dgram_socket sendto;

Comment 1 Daniel Walsh 2010-09-28 14:44:01 UTC
This looks like your machine is mislabeled?

ps -eZ | grep init
ps -eZ | grep syslog

Comment 2 Mads Kiilerich 2010-09-28 15:49:46 UTC
caused by incorrectly installed selinux-policy-targeted

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