Bug 643377

Summary: SELinux is preventing /usr/sbin/ssmtp "append" access on dead.letter.
Product: [Fedora] Fedora Reporter: Tobias Mueller <fedora-bugs>
Component: selinux-policyAssignee: Daniel Walsh <dwalsh>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 14CC: dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:b259eb1e4408f90deaa6bbe400261ecee9394ab76cfa32ec9f78baaf532a5ea1
Fixed In Version: selinux-policy-3.9.7-3.fc14 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-10-18 05:43:44 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 Tobias Mueller 2010-10-15 12:59:47 UTC
Summary:

SELinux is preventing /usr/sbin/ssmtp "append" access on dead.letter.

Detailed Description:

[SELinux is in permissive mode. This access was not denied.]

SELinux denied access requested by sendmail. It is not expected that this access
is required by sendmail and this access may signal an intrusion attempt. It is
also possible that the specific version or configuration of the application is
causing it to require additional access.

Allowing Access:

You can generate a local policy module to allow this access - see FAQ
(http://docs.fedoraproject.org/selinux-faq-fc5/#id2961385) Please file a bug
report.

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                dead.letter [ file ]
Source                        sendmail
Source Path                   /usr/sbin/ssmtp
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           ssmtp-2.61-15.fc14
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.5-10.fc14
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed) 2.6.35.6-39.fc14.x86_64 #1 SMP Fri
                              Oct 8 16:23:12 UTC 2010 x86_64 x86_64
Alert Count                   1
First Seen                    Di 12 Okt 2010 21:17:09 CEST
Last Seen                     Di 12 Okt 2010 21:17:09 CEST
Local ID                      f20461e4-2501-4cc4-a0f9-90adf8756183
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1286911029.217:27359): avc:  denied  { append } for  pid=4827 comm="sendmail" name="dead.letter" dev=dm-1 ino=10083 scontext=system_u:system_r:logwatch_mail_t:s0-s0:c0.c1023 tcontext=system_u:object_r:mail_home_t:s0 tclass=file

node=(removed) type=SYSCALL msg=audit(1286911029.217:27359): arch=c000003e syscall=2 success=yes exit=4 a0=20b91e0 a1=441 a2=1b6 a3=0 items=0 ppid=4757 pid=4827 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=5 comm="sendmail" exe="/usr/sbin/ssmtp" subj=system_u:system_r:logwatch_mail_t:s0-s0:c0.c1023 key=(null)



Hash String generated from  catchall,sendmail,logwatch_mail_t,mail_home_t,file,append
audit2allow suggests:

#============= logwatch_mail_t ==============
allow logwatch_mail_t mail_home_t:file append;

Comment 1 Daniel Walsh 2010-10-15 13:07:34 UTC
Fixed in selinux-policy-3.9.7-2.fc14

Comment 2 Fedora Update System 2010-10-15 15:51:51 UTC
selinux-policy-3.9.7-3.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/selinux-policy-3.9.7-3.fc14

Comment 3 Fedora Update System 2010-10-15 19:07:02 UTC
selinux-policy-3.9.7-3.fc14 has been pushed to the Fedora 14 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update selinux-policy'.  You can provide feedback for this update here: https://admin.fedoraproject.org/updates/selinux-policy-3.9.7-3.fc14

Comment 4 Fedora Update System 2010-10-18 05:43:17 UTC
selinux-policy-3.9.7-3.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.