Bug 896602

Summary: SELinux is preventing /usr/sbin/unbound-anchor from 'block_suspend' accesses on the capability2 .
Product: [Fedora] Fedora Reporter: Martin <mholec>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: dominick.grift, dwalsh, mgrepl, tpelka
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:c7111b74aa73271d32376a3d22a53b5bb9a29d87f2a3afe9ebace08249cf5137
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-01-17 22:20:52 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 Martin 2013-01-17 15:30:51 UTC
Description of problem:
Upgrade from F18 to F19 (Rawhide).
SELinux is preventing /usr/sbin/unbound-anchor from 'block_suspend' accesses on the capability2 .

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

If you believe that unbound-anchor should be allowed block_suspend access on the  capability2 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
Target Context                system_u:system_r:named_t:s0
Target Objects                 [ capability2 ]
Source                        unbound-anchor
Source Path                   /usr/sbin/unbound-anchor
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           unbound-libs-1.4.19-1.fc18.x86_64 unbound-
                              libs-1.4.19-3.fc19.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.11.1-67.fc18.noarch selinux-
                              policy-3.12.1-4.fc19.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 3.6.11-3.fc18.x86_64 #1 SMP Mon
                              Dec 17 21:35:39 UTC 2012 x86_64 x86_64
Alert Count                   1
First Seen                    2013-01-17 16:18:32 CET
Last Seen                     2013-01-17 16:18:32 CET
Local ID                      10c17c05-6fdd-4a7b-8be5-293c867060ae

Raw Audit Messages
type=AVC msg=audit(1358435912.951:438): avc:  denied  { block_suspend } for  pid=9143 comm="unbound-anchor" capability=36  scontext=system_u:system_r:named_t:s0 tcontext=system_u:system_r:named_t:s0 tclass=capability2


type=SYSCALL msg=audit(1358435912.951:438): arch=x86_64 syscall=epoll_ctl success=yes exit=0 a0=7 a1=2 a2=a a3=7fff679f7a90 items=0 ppid=1 pid=9143 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=unbound-anchor exe=/usr/sbin/unbound-anchor subj=system_u:system_r:named_t:s0 key=(null)

Hash: unbound-anchor,named_t,named_t,capability2,block_suspend

audit2allow

#============= named_t ==============
allow named_t self:capability2 block_suspend;

audit2allow -R

#============= named_t ==============
allow named_t self:capability2 block_suspend;


Additional info:
hashmarkername: setroubleshoot
kernel:         3.6.11-3.fc18.x86_64
type:           libreport

Comment 1 Miroslav Grepl 2013-01-17 22:20:52 UTC
Fixed in selinux-policy-3.12.1-5.fc19.noarch

Comment 2 Martin 2013-01-23 12:51:08 UTC
I can reproduce it after another reboot with selinux-policy-3.12.1-5.fc19.noarch I'll try restorecon /

Comment 3 Miroslav Grepl 2013-01-24 09:08:08 UTC
Has been fixed in selinux-policy-3.12.1-6.fc19