Bug 1094551 - SELinux is preventing /usr/sbin/ssmtp from 'create' accesses on the file .
Summary: SELinux is preventing /usr/sbin/ssmtp from 'create' accesses on the file .
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:5b44235f8dca2f4565f74d1331f...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-05-06 02:32 UTC by hkoba
Modified: 2014-05-21 23:30 UTC (History)
4 users (show)

Fixed In Version: selinux-policy-3.12.1-163.fc20
Clone Of:
Environment:
Last Closed: 2014-05-21 23:30:14 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description hkoba 2014-05-06 02:32:13 UTC
Description of problem:
I'm not sure, sorry. Might be triggered from cron daily.
SELinux is preventing /usr/sbin/ssmtp from 'create' accesses on the file .

*****  Plugin catchall (100. confidence) suggests   **************************
...
# grep sendmail /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:logwatch_mail_t:s0-s0:c0.c1023
Target Context                system_u:object_r:mail_home_t:s0
Target Objects                 [ file ]
Source                        sendmail
Source Path                   /usr/sbin/ssmtp
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           ssmtp-2.64-11.fc20.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.12.1-158.fc20.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.14.2-200.fc20.x86_64 #1 SMP Mon
                              Apr 28 14:40:57 UTC 2014 x86_64 x86_64
Alert Count                   1
First Seen                    2014-05-06 10:31:07 JST
Last Seen                     2014-05-06 10:31:07 JST
Local ID                      cd4c917e-5327-4708-a5ae-c50139aad3f8

Raw Audit Messages
type=AVC msg=audit(1399339867.385:571): avc:  denied  { create } for  pid=7178 comm="sendmail" name="dead.letter" scontext=system_u:system_r:logwatch_mail_t:s0-s0:c0.c1023 tcontext=system_u:object_r:mail_home_t:s0 tclass=file


type=SYSCALL msg=audit(1399339867.385:571): arch=x86_64 syscall=open success=no exit=EACCES a0=742410 a1=441 a2=1b6 a3=1 items=0 ppid=7095 pid=7178 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=12 sgid=12 fsgid=12 tty=(none) ses=13 comm=sendmail exe=/usr/sbin/ssmtp subj=system_u:system_r:logwatch_mail_t:s0-s0:c0.c1023 key=(null)

Hash: sendmail,logwatch_mail_t,mail_home_t,file,create

Additional info:
reporter:       libreport-2.2.2
hashmarkername: setroubleshoot
kernel:         3.14.2-200.fc20.x86_64
type:           libreport

Comment 1 Miroslav Grepl 2014-05-12 13:18:35 UTC
commit 6e7080d248e9c006978c758218f1f4c43d24f0f5
Author: Miroslav Grepl <mgrepl>
Date:   Mon May 12 15:17:48 2014 +0200

    Allow logwatch_mail_t to create dead.letter with correct labeling

Comment 2 Fedora Update System 2014-05-13 13:22:01 UTC
selinux-policy-3.12.1-163.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/FEDORA-2014-6084/selinux-policy-3.12.1-163.fc20

Comment 3 Fedora Update System 2014-05-14 23:52:58 UTC
Package selinux-policy-3.12.1-163.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-163.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-6084/selinux-policy-3.12.1-163.fc20
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2014-05-21 23:30:14 UTC
selinux-policy-3.12.1-163.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.


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