Bug 1071549

Summary: SELinux is preventing /usr/sbin/unbound-anchor from 'write' accesses on the fifo_file .
Product: [Fedora] Fedora Reporter: Mukundan Ragavan <nonamedotc>
Component: systemdAssignee: systemd-maint
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: akurtako, dominick.grift, dwalsh, johannbg, lnykryn, lvrabec, mgrepl, msekleta, nicolas.mailhot, plautrba, systemd-maint, vpavlin, zbyszek
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:6a450c3a6dd7c8fccf6a913cf2b434c586123851de122edcd983a700a4f9cf84
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-06-17 12:12:43 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 Mukundan Ragavan 2014-03-01 16:00:46 UTC
Description of problem:
SELinux is preventing /usr/sbin/unbound-anchor from 'write' accesses on the fifo_file .

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

If you want to ignore unbound-anchor trying to write access the  fifo_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-anchor /var/log/audit/audit.log | audit2allow -D -M mypol
# semodule -i mypol.pp

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

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

Additional Information:
Source Context                system_u:system_r:named_t:s0-s0:c0.c1023
Target Context                system_u:object_r:systemd_logind_sessions_t:s0
Target Objects                 [ fifo_file ]
Source                        unbound-anchor
Source Path                   /usr/sbin/unbound-anchor
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           unbound-libs-1.4.21-3.fc21.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-28.fc21.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.14.0-0.rc4.git1.1.fc21.x86_64 #1
                              SMP Wed Feb 26 17:10:50 UTC 2014 x86_64 x86_64
Alert Count                   1
First Seen                    2014-03-01 03:10:02 CST
Last Seen                     2014-03-01 03:10:02 CST
Local ID                      d1914289-eaee-4b6d-ab6f-527c709e3b23

Raw Audit Messages
type=AVC msg=audit(1393665002.304:579): avc:  denied  { write } for  pid=28347 comm="unbound-anchor" path="/run/systemd/sessions/7.ref" dev="tmpfs" ino=109998 scontext=system_u:system_r:named_t:s0-s0:c0.c1023 tcontext=system_u:object_r:systemd_logind_sessions_t:s0 tclass=fifo_file


type=SYSCALL msg=audit(1393665002.304:579): arch=x86_64 syscall=execve success=yes exit=0 a0=1d71e00 a1=1d70ff0 a2=1d70d50 a3=7fffdb87a230 items=0 ppid=28323 pid=28347 auid=993 uid=993 gid=990 euid=993 suid=993 fsuid=993 egid=990 sgid=990 fsgid=990 tty=(none) ses=7 comm=unbound-anchor exe=/usr/sbin/unbound-anchor subj=system_u:system_r:named_t:s0-s0:c0.c1023 key=(null)

Hash: unbound-anchor,named_t,systemd_logind_sessions_t,fifo_file,write

Additional info:
reporter:       libreport-2.1.12
hashmarkername: setroubleshoot
kernel:         3.14.0-0.rc4.git1.1.fc21.x86_64
type:           libreport

Comment 1 Lennart Poettering 2014-06-17 12:12:43 UTC

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