Bug 770852

Summary: SELinux is preventing /sbin/rsyslogd from 'read' accesses on the file /etc/host.conf.
Product: [Fedora] Fedora Reporter: Tom Weniger <trweniger>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16CC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:598307445b8cf73c9fc37716d1d6f2ad3f5cdade3121fdb78821394165679e86
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-12-29 17:35:55 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Tom Weniger 2011-12-29 16:24:05 UTC
libreport version: 2.0.8
executable:     /usr/bin/python
hashmarkername: setroubleshoot
kernel:         3.1.6-1.fc16.x86_64
reason:         SELinux is preventing /sbin/rsyslogd from 'read' accesses on the file /etc/host.conf.
time:           Thu 29 Dec 2011 09:23:54 AM MST

description:
:SELinux is preventing /sbin/rsyslogd from 'read' accesses on the file /etc/host.conf.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that rsyslogd should be allowed read access on the host.conf file by default.
:Then you should report this as a bug.
:You can generate a local policy module to allow this access.
:Do
:allow this access for now by executing:
:# grep rsyslogd /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                system_u:system_r:syslogd_t:s0
:Target Context                system_u:object_r:boinc_tmpfs_t:s0
:Target Objects                /etc/host.conf [ file ]
:Source                        rsyslogd
:Source Path                   /sbin/rsyslogd
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           rsyslog-5.8.5-1.fc16
:Target RPM Packages           setup-2.8.36-2.fc16
:Policy RPM                    selinux-policy-3.10.0-67.fc16
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.1.6-1.fc16.x86_64 #1 SMP Wed Dec
:                              21 22:41:17 UTC 2011 x86_64 x86_64
:Alert Count                   1
:First Seen                    Wed 28 Dec 2011 10:04:01 PM MST
:Last Seen                     Wed 28 Dec 2011 10:04:01 PM MST
:Local ID                      4257317e-1df1-4379-b08e-28f1933ba618
:
:Raw Audit Messages
:type=AVC msg=audit(1325135041.470:28): avc:  denied  { read } for  pid=1145 comm="rsyslogd" name="host.conf" dev=dm-0 ino=262175 scontext=system_u:system_r:syslogd_t:s0 tcontext=system_u:object_r:boinc_tmpfs_t:s0 tclass=file
:
:
:type=SYSCALL msg=audit(1325135041.470:28): arch=x86_64 syscall=open success=no exit=EACCES a0=7f3e3d0d5def a1=0 a2=1b6 a3=238 items=0 ppid=1 pid=1145 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=rsyslogd exe=/sbin/rsyslogd subj=system_u:system_r:syslogd_t:s0 key=(null)
:
:Hash: rsyslogd,syslogd_t,boinc_tmpfs_t,file,read
:
:audit2allow
:
:#============= syslogd_t ==============
:allow syslogd_t boinc_tmpfs_t:file read;
:
:audit2allow -R
:
:#============= syslogd_t ==============
:allow syslogd_t boinc_tmpfs_t:file read;
:

Comment 1 Daniel Walsh 2011-12-29 17:35:55 UTC

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