Bug 1297129 - SELinux is preventing /usr/sbin/chronyd from 'write' accesses on the sock_file system_bus_socket.
Summary: SELinux is preventing /usr/sbin/chronyd from 'write' accesses on the sock_fil...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 23
Hardware: x86_64
OS: Unspecified
low
low
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:65acfc7b636201e2c0b2ed8dfc3...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-01-09 16:36 UTC by Thomas Meyer
Modified: 2016-01-22 02:21 UTC (History)
5 users (show)

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:
Clone Of:
Environment:
Last Closed: 2016-01-22 02:21:12 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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.


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