Bug 786363

Summary: SELinux is preventing /usr/sbin/chronyd from 'read' accesses on the None /etc/resolv.conf.
Product: [Fedora] Fedora Reporter: Michele Nava <michele.nava>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED NOTABUG 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:645e383cfcd7de92e36c0c38b01563b57eb96af4f8346cc09f08e6dbd490011e
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-01 09:05:56 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 Michele Nava 2012-02-01 08:22:24 UTC
libreport version: 2.0.8
executable:     /usr/bin/python
hashmarkername: setroubleshoot
kernel:         3.2.2-1.fc16.x86_64
reason:         SELinux is preventing /usr/sbin/chronyd from 'read' accesses on the None /etc/resolv.conf.
time:           Wed 01 Feb 2012 09:22:02 AM CET

description:
:SELinux is preventing /usr/sbin/chronyd from 'read' accesses on the None /etc/resolv.conf.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that chronyd should be allowed read access on the resolv.conf <Unknown> 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 chronyd /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                system_u:system_r:chronyd_t:s0
:Target Context                unconfined_u:object_r:user_home_t:s0
:Target Objects                /etc/resolv.conf [ None ]
:Source                        chronyd
:Source Path                   /usr/sbin/chronyd
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           
:Target RPM Packages           
:Policy RPM                    <Unknown>
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.2.2-1.fc16.x86_64 #1 SMP
:                              Thu Jan 26 03:21:58 UTC 2012 x86_64 x86_64
:Alert Count                   26
:First Seen                    Tue 31 Jan 2012 06:55:40 PM CET
:Last Seen                     Wed 01 Feb 2012 09:21:11 AM CET
:Local ID                      7e5d885a-a821-43d5-9ba4-224dc1ef55b5
:
:Raw Audit Messages
:type=AVC msg=audit(1328084471.285:197): avc:  denied  { read } for  pid=1100 comm="chronyd" name="resolv.conf" dev=dm-1 ino=131610 scontext=system_u:system_r:chronyd_t:s0 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=filenode=(removed) type=SYSCALL msg=audit(1328084471.285:197): arch=c000003e syscall=2 success=no exit=-13 a0=7ffd4073ce48 a1=0 a2=1b6 a3=238 items=0 ppid=1 pid=1100 auid=4294967295 uid=994 gid=991 euid=994 suid=994 fsuid=994 egid=991 sgid=991 fsgid=991 tty=(none) ses=4294967295 comm="chronyd" exe="/usr/sbin/chronyd" subj=system_u:system_r:chronyd_t:s0 key=(null)
:
:
:Hash: chronyd,chronyd_t,user_home_t,None,read
:
:audit2allow
:
:
:audit2allow -R
:
:

Comment 1 Miroslav Grepl 2012-02-01 09:05:56 UTC
You need to execute

$ restorecon -R -v /etc/resolv.conf

The problem is you probably moved the resolv.conf file from your homedir.