Bug 1029251

Summary: SELinux is preventing /usr/sbin/sendmail.sendmail from 'block_suspend' accesses on the capability2 .
Product: [Fedora] Fedora Reporter: caskhyron
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 19CC: dominick.grift, dwalsh, lvrabec, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Unspecified   
Whiteboard: abrt_hash:62200f2c4e36a15c911bc91b3d9b0cde03ba3cdd44f1efdf6e28210d8f4b0fd2
Fixed In Version: selinux-policy-3.12.1-74.14.fc19 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-12-03 10:33:17 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 caskhyron 2013-11-12 00:53:26 UTC
Description of problem:
This error comes up after logging into Fedora 19.  I don't know what this error means or what it is trying to do.
SELinux is preventing /usr/sbin/sendmail.sendmail from 'block_suspend' accesses on the capability2 .

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

If you believe that sendmail.sendmail 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 sendmail /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:sendmail_t:s0
Target Context                system_u:system_r:sendmail_t:s0
Target Objects                 [ capability2 ]
Source                        sendmail
Source Path                   /usr/sbin/sendmail.sendmail
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           sendmail-8.14.7-1.fc19.i686
Target RPM Packages           
Policy RPM                    selinux-policy-3.12.1-74.11.fc19.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.11.7-200.fc19.i686 #1 SMP Mon
                              Nov 4 14:32:57 UTC 2013 i686 i686
Alert Count                   16
First Seen                    2013-11-04 19:59:07 EST
Last Seen                     2013-11-11 19:48:52 EST
Local ID                      864a7d3a-9b18-4c8c-b5cf-d159526a4063

Raw Audit Messages
type=AVC msg=audit(1384217332.799:594): avc:  denied  { block_suspend } for  pid=1937 comm="sendmail" capability=36  scontext=system_u:system_r:sendmail_t:s0 tcontext=system_u:system_r:sendmail_t:s0 tclass=capability2


type=SYSCALL msg=audit(1384217332.799:594): arch=i386 syscall=epoll_ctl success=yes exit=0 a0=3 a1=2 a2=7 a3=bfa3c8a4 items=0 ppid=1 pid=1937 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=51 sgid=51 fsgid=51 ses=4294967295 tty=(none) comm=sendmail exe=/usr/sbin/sendmail.sendmail subj=system_u:system_r:sendmail_t:s0 key=(null)

Hash: sendmail,sendmail_t,sendmail_t,capability2,block_suspend

Additional info:
reporter:       libreport-2.1.9
hashmarkername: setroubleshoot
kernel:         3.11.7-200.fc19.i686
type:           libreport

Comment 1 Daniel Walsh 2013-11-12 13:45:40 UTC
a02a27ef43380c20c141a7d2cdea4b7db170b674 adds a dontaudit for this to git.

Comment 2 Lukas Vrabec 2013-11-18 09:19:16 UTC
back ported.

Comment 3 Fedora Update System 2013-11-26 14:22:56 UTC
selinux-policy-3.12.1-74.14.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/selinux-policy-3.12.1-74.14.fc19

Comment 4 Fedora Update System 2013-11-27 04:30:12 UTC
Package selinux-policy-3.12.1-74.14.fc19:
* should fix your issue,
* was pushed to the Fedora 19 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-74.14.fc19'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-22197/selinux-policy-3.12.1-74.14.fc19
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2013-12-03 10:33:17 UTC
selinux-policy-3.12.1-74.14.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.