Bug 1165443 - 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:4f1283f7e58225c5c244a59bf19...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-11-19 01:34 UTC by lucasfregnani
Modified: 2014-12-04 06:26 UTC (History)
5 users (show)

Fixed In Version: selinux-policy-3.12.1-195.fc20
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-12-04 06:26:35 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description lucasfregnani 2014-11-19 01:34:25 UTC
Description of problem:
SELinux is preventing /usr/sbin/ssmtp from 'create' accesses on the file .

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

If você acredita que o ssmtp deva ser permitido acesso de create em  file  por default.
Then você precisa reportar este como um erro.
Você pode gerar um módulo de política local para permitir este acesso.
Do
permitir este acesso agora executando:
# 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: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-193.fc20.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.17.2-200.fc20.x86_64 #1 SMP Tue
                              Nov 4 18:04:56 UTC 2014 x86_64 x86_64
Alert Count                   2
First Seen                    2014-11-18 22:28:52 BRST
Last Seen                     2014-11-18 23:28:53 BRST
Local ID                      5bc2cc74-937d-4e85-b345-da6f989cdd22

Raw Audit Messages
type=AVC msg=audit(1416360533.918:1111): avc:  denied  { create } for  pid=21729 comm="sendmail" name="dead.letter" scontext=system_u:system_r:sendmail_t:s0 tcontext=system_u:object_r:mail_home_t:s0 tclass=file permissive=0


type=SYSCALL msg=audit(1416360533.918:1111): arch=x86_64 syscall=open success=no exit=EACCES a0=1d21840 a1=441 a2=1b6 a3=0 items=0 ppid=1 pid=21729 auid=4294967295 uid=1001 gid=1001 euid=1001 suid=1001 fsuid=1001 egid=12 sgid=12 fsgid=12 tty=(none) ses=4294967295 comm=sendmail exe=/usr/sbin/ssmtp subj=system_u:system_r:sendmail_t:s0 key=(null)

Hash: sendmail,sendmail_t,mail_home_t,file,create

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

Comment 1 Lukas Vrabec 2014-11-19 10:27:19 UTC
commit b24fc36e191a93d52c2965f0a641506cc60a65c4
Author: Lukas Vrabec <lvrabec>
Date:   Wed Nov 19 11:25:49 2014 +0100

    Allow sendmail to create dead.letter. BZ(1165443)

Comment 2 Fedora Update System 2014-11-21 13:06:21 UTC
selinux-policy-3.12.1-195.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/selinux-policy-3.12.1-195.fc20

Comment 3 Fedora Update System 2014-11-22 12:45:38 UTC
Package selinux-policy-3.12.1-195.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-195.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-15552/selinux-policy-3.12.1-195.fc20
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2014-12-04 06:26:35 UTC
selinux-policy-3.12.1-195.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.