Bug 798286 - SELinux is preventing /usr/sbin/chronyd from 'unlink' accesses on the None /etc/resolv.conf.
Summary: SELinux is preventing /usr/sbin/chronyd from 'unlink' accesses on the None /e...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 16
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:69bf78efb97c4ed91907132e13b...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-28 14:28 UTC by Juan Orti
Modified: 2012-02-28 15:17 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-02-28 15:17:00 UTC
Type: ---


Attachments (Terms of Use)

Description Juan Orti 2012-02-28 14:28:11 UTC
libreport version: 2.0.8
executable:     /usr/bin/python
hashmarkername: setroubleshoot
kernel:         3.2.7-1.fc16.x86_64
reason:         SELinux is preventing /usr/sbin/chronyd from 'unlink' accesses on the None /etc/resolv.conf.
time:           mar 28 feb 2012 17:27:57 CET

description:
:SELinux is preventing /usr/sbin/chronyd from 'unlink' accesses on the None /etc/resolv.conf.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that chronyd should be allowed unlink access on the resolv.conf <Desconocido> 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                          <Desconocido>
:Host                          (removed)
:Source RPM Packages           chrony-1.26-5.20110831gitb088b7.fc16.x86_64
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-75.fc16.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.2.7-1.fc16.x86_64 #1 SMP Tue
:                              Feb 21 01:40:47 UTC 2012 x86_64 x86_64
:Alert Count                   1
:First Seen                    mar 28 feb 2012 17:25:25 CET
:Last Seen                     mar 28 feb 2012 17:25:25 CET
:Local ID                      98f69643-fa67-47c0-93b8-92961a7ae498
:
:Raw Audit Messages
:type=AVC msg=audit(1330446325.595:61): avc:  denied  { unlink } for  pid=1101 comm="NetworkManager" name="resolv.conf" dev=sda3 ino=523912 scontext=system_u:system_r:NetworkManager_t:s0 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=filenode=(removed) type=AVC msg=audit(1330446326.595:62): avc:  denied  { unlink } for  pid=1101 comm="NetworkManager" name="resolv.conf" dev=sda3 ino=523912 scontext=system_u:system_r:NetworkManager_t:s0 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=filenode=(removed) type=AVC msg=audit(1330446326.684:64): avc:  denied  { read } for  pid=1151 comm="chronyd" name="resolv.conf" dev=sda3 ino=523912 scontext=system_u:system_r:chronyd_t:s0 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=filenode=(removed) type=SYSCALL msg=audit(1330446326.684:64): arch=c000003e syscall=2 success=no exit=-13 a0=7f9eedfb8928 a1=0 a2=1b6 a3=238 items=0 ppid=1 pid=1151 auid=4294967295 uid=993 gid=987 euid=993 suid=993 fsuid=993 egid=987 sgid=987 fsgid=987 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,unlink
:
:audit2allow
:
:
:audit2allow -R
:
:

Comment 1 Juan Orti 2012-02-28 15:17:00 UTC
Forget this bug, the target context was wrong.


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