Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1227239 - SELinux is preventing dnssec-trigger- from 'write' accesses on the sock_file system_bus_socket.
Summary: SELinux is preventing dnssec-trigger- from 'write' accesses on the sock_file ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 22
Hardware: x86_64
OS: Unspecified
unspecified
high
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:a7b0fafad6e20005fd031e6ab2e...
: 1227406 (view as bug list)
Depends On:
Blocks: Default_Local_DNS_Resolver
TreeView+ depends on / blocked
 
Reported: 2015-06-02 08:46 UTC by Tomáš Hozza
Modified: 2015-06-11 18:38 UTC (History)
8 users (show)

Fixed In Version: selinux-policy-3.13.1-128.1.fc22
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-06-11 18:38:05 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Tomáš Hozza 2015-06-02 08:46:20 UTC
Description of problem:
most probably, the dnssec-trigger-script was triggered by the NM dispatcher on network configuration change.
SELinux is preventing dnssec-trigger- from 'write' accesses on the sock_file system_bus_socket.

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

If you believe that dnssec-trigger- should be allowed write access on the system_bus_socket sock_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 dnssec-trigger- /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:dnssec_trigger_t:s0
Target Context                system_u:object_r:system_dbusd_var_run_t:s0
Target Objects                system_bus_socket [ sock_file ]
Source                        dnssec-trigger-
Source Path                   dnssec-trigger-
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-126.fc22.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.0.4-301.fc22.x86_64 #1 SMP Thu
                              May 21 13:10:33 UTC 2015 x86_64 x86_64
Alert Count                   1
First Seen                    2015-06-02 10:43:15 CEST
Last Seen                     2015-06-02 10:43:15 CEST
Local ID                      c8c597e4-831d-4258-b1d3-de95088a207b

Raw Audit Messages
type=AVC msg=audit(1433234595.245:559): avc:  denied  { write } for  pid=4169 comm="dnssec-trigger-" name="system_bus_socket" dev="tmpfs" ino=18212 scontext=system_u:system_r:dnssec_trigger_t:s0 tcontext=system_u:object_r:system_dbusd_var_run_t:s0 tclass=sock_file permissive=0


Hash: dnssec-trigger-,dnssec_trigger_t,system_dbusd_var_run_t,sock_file,write

Version-Release number of selected component:
selinux-policy-3.13.1-126.fc22.noarch

Additional info:
reporter:       libreport-2.5.1
hashmarkername: setroubleshoot
kernel:         4.0.4-301.fc22.x86_64
type:           libreport

Comment 1 Tomáš Hozza 2015-06-02 08:48:50 UTC
dnssec-trigger-script is using libnm-glib Python bindings. I assume those are using the DBus underneath.

Comment 2 Miroslav Grepl 2015-06-02 10:58:03 UTC
commit a17a18b95f9d04f5bef18d91cdbdfcc822992e3e
Author: Miroslav Grepl <mgrepl>
Date:   Tue Jun 2 12:56:45 2015 +0200

    Allow dnssec-trigger connections to the system DBUS. It uses libnm-glib Python bindings. BZ(1227239)

Comment 3 Fedora Update System 2015-06-09 14:39:35 UTC
selinux-policy-3.13.1-128.1.fc22 has been submitted as an update for Fedora 22.
https://admin.fedoraproject.org/updates/selinux-policy-3.13.1-128.1.fc22

Comment 4 Tomáš Hozza 2015-06-09 15:32:51 UTC
*** Bug 1227406 has been marked as a duplicate of this bug. ***

Comment 5 Fedora Update System 2015-06-10 19:11:21 UTC
Package selinux-policy-3.13.1-128.1.fc22:
* should fix your issue,
* was pushed to the Fedora 22 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing selinux-policy-3.13.1-128.1.fc22'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-9714/selinux-policy-3.13.1-128.1.fc22
then log in and leave karma (feedback).

Comment 6 Fedora Update System 2015-06-11 18:38:05 UTC
selinux-policy-3.13.1-128.1.fc22 has been pushed to the Fedora 22 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.