Bug 1158117 - SELinux is preventing /usr/sbin/unbound-control from 'write' accesses on the file .
Summary: SELinux is preventing /usr/sbin/unbound-control from 'write' accesses on the ...
Keywords:
Status: CLOSED DUPLICATE of bug 1147608
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:de983f9e38eb5b1f7314d2e5a5a...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-10-28 15:37 UTC by Laurent Rineau
Modified: 2014-10-29 10:18 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-10-29 10:18:21 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Laurent Rineau 2014-10-28 15:37:45 UTC
Description of problem:
SELinux is preventing /usr/sbin/unbound-control from 'write' accesses on the file .

*****  Plugin leaks (86.2 confidence) suggests   *****************************

If you want to ignore unbound-control trying to write access the  file, because you believe it should not need this access.
Then you should report this as a bug.  
You can generate a local policy module to dontaudit this access.
Do
# grep /usr/sbin/unbound-control /var/log/audit/audit.log | audit2allow -D -M mypol
# semodule -i mypol.pp

*****  Plugin catchall (14.7 confidence) suggests   **************************

If you believe that unbound-control should be allowed write 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:named_t:s0
Target Context                system_u:object_r:dnssec_trigger_var_run_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-189.fc20.noarch selinux-
                              policy-3.12.1-192.fc20.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.16.6-200.fc20.x86_64 #1 SMP Wed
                              Oct 15 13:06:51 UTC 2014 x86_64 x86_64
Alert Count                   6
First Seen                    2014-10-28 16:34:12 CET
Last Seen                     2014-10-28 16:34:13 CET
Local ID                      2535043f-7e72-4a9e-896b-f27ff2ac28a6

Raw Audit Messages
type=AVC msg=audit(1414510453.502:247334): avc:  denied  { write } for  pid=17396 comm="unbound-control" path="/run/dnssec-trigger/lock" dev="tmpfs" ino=11602034 scontext=system_u:system_r:named_t:s0 tcontext=system_u:object_r:dnssec_trigger_var_run_t:s0 tclass=file permissive=0


type=SYSCALL msg=audit(1414510453.502:247334): arch=x86_64 syscall=execve success=yes exit=0 a0=2768060 a1=25e0db0 a2=23eb590 a3=0 items=0 ppid=17389 pid=17396 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:named_t:s0 key=(null)

Hash: unbound-control,named_t,dnssec_trigger_var_run_t,file,write

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

Potential duplicate: bug 1147608

Comment 1 Lukas Vrabec 2014-10-29 10:18:21 UTC

*** This bug has been marked as a duplicate of bug 1147608 ***


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