Bug 1297129

Summary: SELinux is preventing /usr/sbin/chronyd from 'write' accesses on the sock_file system_bus_socket.
Product: [Fedora] Fedora Reporter: Thomas Meyer <thomas.mey>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: 23CC: dominick.grift, dwalsh, lvrabec, mgrepl, plautrba
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:65acfc7b636201e2c0b2ed8dfc35b6e022cea49ff0822bb3a8542fc713c2722f;VARIANT_ID=workstation;
Fixed In Version: selinux-policy-3.13.1-158.3.fc23 selinux-policy-3.13.1-158.2.fc23 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-01-22 02:21:12 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 Thomas Meyer 2016-01-09 16:36:23 UTC
Description of problem:
SELinux is preventing /usr/sbin/chronyd from 'write' accesses on the sock_file system_bus_socket.

*****  Plugin catchall (100. confidence) suggests   **************************

If sie denken, dass es chronyd standardmässig erlaubt sein sollte, write Zugriff auf system_bus_socket sock_file zu erhalten.
Then sie sollten dies als Fehler melden.
Um diesen Zugriff zu erlauben, können Sie ein lokales Richtlinien-Modul erstellen.
Do
zugriff jetzt erlauben, indem Sie die nachfolgenden Befehle ausführen:
# 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                system_u:object_r:system_dbusd_var_run_t:s0
Target Objects                system_bus_socket [ sock_file ]
Source                        chronyd
Source Path                   /usr/sbin/chronyd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           chrony-2.1.1-1.fc23.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-158.fc23.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.3.3 #16 SMP PREEMPT Sun Jan 3
                              17:27:56 CET 2016 x86_64 x86_64
Alert Count                   29
First Seen                    2016-01-07 23:00:02 CET
Last Seen                     2016-01-09 17:31:23 CET
Local ID                      1a9e4a2e-ebf8-4c49-91f0-4aa79b531a26

Raw Audit Messages
type=AVC msg=audit(1452357083.698:1584): avc:  denied  { write } for  pid=1211166 comm="chronyd" name="system_bus_socket" dev="tmpfs" ino=15374 scontext=system_u:system_r:chronyd_t:s0 tcontext=system_u:object_r:system_dbusd_var_run_t:s0 tclass=sock_file permissive=0


type=SYSCALL msg=audit(1452357083.698:1584): arch=x86_64 syscall=connect success=no exit=EACCES a0=5 a1=7f4f00009028 a2=21 a3=7f4f083a8320 items=0 ppid=1 pid=1211166 auid=4294967295 uid=480 gid=458 euid=480 suid=480 fsuid=480 egid=458 sgid=458 fsgid=458 tty=(none) ses=4294967295 comm=chronyd exe=/usr/sbin/chronyd subj=system_u:system_r:chronyd_t:s0 key=(null)

Hash: chronyd,chronyd_t,system_dbusd_var_run_t,sock_file,write

Version-Release number of selected component:
selinux-policy-3.13.1-158.fc23.noarch

Additional info:
reporter:       libreport-2.6.3
hashmarkername: setroubleshoot
kernel:         4.3.3
type:           libreport

Comment 1 Lukas Vrabec 2016-01-12 15:36:10 UTC
commit fcad13487089bc8403d5335c7db84e73eb39bb22
Author: Lukas Vrabec <lvrabec>
Date:   Tue Jan 12 16:34:43 2016 +0100

    Allow chronyd to be dbus bus client. BZ(1297129)

Comment 2 Fedora Update System 2016-01-14 13:15:19 UTC
selinux-policy-3.13.1-158.2.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-7cb7ac5cb9

Comment 3 Fedora Update System 2016-01-15 18:53:22 UTC
selinux-policy-3.13.1-158.2.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-7cb7ac5cb9

Comment 4 Fedora Update System 2016-01-22 02:20:32 UTC
selinux-policy-3.13.1-158.2.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.