Bug 1152493 - SELinux is preventing /usr/sbin/unbound-control from 'open' accesses on the file .
Summary: SELinux is preventing /usr/sbin/unbound-control from 'open' accesses on the f...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 20
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:e169315d8cd6141a415138328b1...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-10-14 09:44 UTC by Laurent Rineau
Modified: 2014-10-28 16:09 UTC (History)
5 users (show)

Fixed In Version: selinux-policy-3.12.1-192.fc20
Clone Of:
Environment:
Last Closed: 2014-10-28 06:38:40 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Laurent Rineau 2014-10-14 09:44:17 UTC
Description of problem:
I was "playing" with the dnssec-trigger icon in the icon-tray.
SELinux is preventing /usr/sbin/unbound-control from 'open' accesses on the file .

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

If you believe that unbound-control should be allowed open access on the  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 unbound-control /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:named_exec_t:s0
Target Objects                 [ file ]
Source                        unbound-control
Source Path                   /usr/sbin/unbound-control
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           unbound-1.4.22-5.fc20.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.12.1-183.fc20.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.16.3-200.fc20.x86_64 #1 SMP Wed
                              Sep 17 22:34:21 UTC 2014 x86_64 x86_64
Alert Count                   4
First Seen                    2014-10-01 10:54:04 CEST
Last Seen                     2014-10-14 11:42:22 CEST
Local ID                      eed1bc9f-a913-47af-be0e-bebc32b0f7ac

Raw Audit Messages
type=AVC msg=audit(1413279742.760:83807): avc:  denied  { open } for  pid=38639 comm="sh" path="/usr/sbin/unbound-control" dev="dm-0" ino=9443436 scontext=system_u:system_r:dnssec_trigger_t:s0 tcontext=system_u:object_r:named_exec_t:s0 tclass=file permissive=1


type=AVC msg=audit(1413279742.760:83807): avc:  denied  { execute_no_trans } for  pid=38639 comm="sh" path="/usr/sbin/unbound-control" dev="dm-0" ino=9443436 scontext=system_u:system_r:dnssec_trigger_t:s0 tcontext=system_u:object_r:named_exec_t:s0 tclass=file permissive=1


type=SYSCALL msg=audit(1413279742.760:83807): arch=x86_64 syscall=execve success=yes exit=0 a0=14e5d10 a1=14e5fe0 a2=14e4bb0 a3=8 items=0 ppid=1958 pid=38639 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=unbound-control exe=/usr/sbin/unbound-control subj=system_u:system_r:dnssec_trigger_t:s0 key=(null)

Hash: unbound-control,dnssec_trigger_t,named_exec_t,file,open

Additional info:
reporter:       libreport-2.2.3
hashmarkername: setroubleshoot
kernel:         3.16.3-200.fc20.x86_64
type:           libreport

Comment 1 Miroslav Grepl 2014-10-14 14:32:58 UTC
commit 4a6483e37dd119113b1e66a0e39c17f139c28561
Author: Miroslav Grepl <mgrepl>
Date:   Mon Oct 13 16:06:24 2014 +0200

    Allow dnssec_trigger_t to execute unbound-control in own domain.

Comment 2 Fedora Update System 2014-10-22 11:52:50 UTC
selinux-policy-3.12.1-192.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/selinux-policy-3.12.1-192.fc20

Comment 3 Fedora Update System 2014-10-23 06:23:46 UTC
Package selinux-policy-3.12.1-192.fc20:
* should fix your issue,
* was pushed to the Fedora 20 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.12.1-192.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-13495/selinux-policy-3.12.1-192.fc20
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2014-10-28 06:38:40 UTC
selinux-policy-3.12.1-192.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 5 Laurent Rineau 2014-10-28 16:09:09 UTC
A follow up of that bug is bug #1158117.


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