Bug 866710 - SELinux is preventing /usr/sbin/chronyd from 'read' accesses on the file /etc/resolv.conf.
SELinux is preventing /usr/sbin/chronyd from 'read' accesses on the file /etc...
Status: CLOSED NOTABUG
Product: Fedora
Classification: Fedora
Component: selinux-policy (Show other bugs)
17
x86_64 Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Miroslav Grepl
Fedora Extras Quality Assurance
abrt_hash:a4e2a1c3ce0b4f8a84e0b395e25...
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2012-10-15 19:17 EDT by jasonbenedict
Modified: 2012-10-15 23:50 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2012-10-15 23:50:30 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
File: type (9 bytes, text/plain)
2012-10-15 19:17 EDT, jasonbenedict
no flags Details
File: hashmarkername (14 bytes, text/plain)
2012-10-15 19:17 EDT, jasonbenedict
no flags Details

  None (edit)
Description jasonbenedict 2012-10-15 19:17:03 EDT
Additional info:
libreport version: 2.0.14
kernel:         3.6.1-1.fc17.x86_64

description:
:SELinux is preventing /usr/sbin/chronyd from 'read' accesses on the file /etc/resolv.conf.
:
:*****  Plugin restorecon (99.5 confidence) suggests  *************************
:
:If you want to fix the label. 
:/etc/resolv.conf default label should be net_conf_t.
:Then you can run restorecon.
:Do
:# /sbin/restorecon -v /etc/resolv.conf
:
:*****  Plugin catchall (1.49 confidence) suggests  ***************************
:
:If you believe that chronyd should be allowed read access on the resolv.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 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:pppd_etc_t:s0
:Target Objects                /etc/resolv.conf [ file ]
:Source                        chronyd
:Source Path                   /usr/sbin/chronyd
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           chrony-1.27-0.3.pre1.fc17.x86_64
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-153.fc17.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.6.1-1.fc17.x86_64 #1 SMP Wed Oct
:                              10 12:13:05 UTC 2012 x86_64 x86_64
:Alert Count                   4
:First Seen                    2012-10-16 15:10:12 SGT
:Last Seen                     2012-10-16 15:12:20 SGT
:Local ID                      940d4ada-7899-4f99-aaff-2105c31c0be0
:
:Raw Audit Messages
:type=AVC msg=audit(1350371540.623:104): avc:  denied  { read } for  pid=729 comm="chronyd" name="resolv.conf" dev="dm-1" ino=137142 scontext=system_u:system_r:chronyd_t:s0 tcontext=unconfined_u:object_r:pppd_etc_t:s0 tclass=file
:
:
:type=SYSCALL msg=audit(1350371540.623:104): arch=x86_64 syscall=open success=no exit=EACCES a0=7f608669a34e a1=80000 a2=1b6 a3=238 items=0 ppid=1 pid=729 auid=4294967295 uid=994 gid=992 euid=994 suid=994 fsuid=994 egid=992 sgid=992 fsgid=992 tty=(none) ses=4294967295 comm=chronyd exe=/usr/sbin/chronyd subj=system_u:system_r:chronyd_t:s0 key=(null)
:
:Hash: chronyd,chronyd_t,pppd_etc_t,file,read
:
:audit2allow
:
:#============= chronyd_t ==============
:allow chronyd_t pppd_etc_t:file read;
:
:audit2allow -R
:
:#============= chronyd_t ==============
:allow chronyd_t pppd_etc_t:file read;
:
Comment 1 jasonbenedict 2012-10-15 19:17:07 EDT
Created attachment 627786 [details]
File: type
Comment 2 jasonbenedict 2012-10-15 19:17:09 EDT
Created attachment 627787 [details]
File: hashmarkername
Comment 3 Daniel Walsh 2012-10-15 23:50:30 EDT
/etc/resolv.conf is mislableed.  Any idea how this got labeled as pppd_etc_t.  Did some tool mv this out of /etc/ppp?


restorecon /etc/resolv.conf 

Will fix the problem.

Note You need to log in before you can comment on or make changes to this bug.