Bug 1094551
| Summary: | SELinux is preventing /usr/sbin/ssmtp from 'create' accesses on the file . | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | hkoba <buribullet> |
| Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 20 | CC: | dominick.grift, dwalsh, lvrabec, mgrepl |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Unspecified | ||
| Whiteboard: | abrt_hash:5b44235f8dca2f4565f74d1331f6e705782ac877973c3a0c45dbf2cce0991e16 | ||
| Fixed In Version: | selinux-policy-3.12.1-163.fc20 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2014-05-21 23:30:14 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: | |||
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
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 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). 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. |
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