Bug 456020 - ssmtp can't send logwatch email
ssmtp can't send logwatch email
Status: CLOSED CURRENTRELEASE
Product: Fedora
Classification: Fedora
Component: selinux-policy-targeted (Show other bugs)
9
noarch Linux
low Severity low
: ---
: ---
Assigned To: Daniel Walsh
Ben Levenson
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2008-07-20 17:06 EDT by Vegard Lima
Modified: 2008-08-07 10:46 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2008-08-07 10:46:59 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Vegard Lima 2008-07-20 17:06:16 EDT
Description of problem:

selinux prevents ssmtp from sending email.

host=xxx type=AVC msg=audit(1216435357.179:141): avc:  denied  { name_connect }
for  pid=15667 comm="sendmail" dest=25
scontext=system_u:system_r:logwatch_t:s0-s0:c0.c1023
tcontext=system_u:object_r:smtp_port_t:s0 tclass=tcp_socket

host=xxx type=SYSCALL msg=audit(1216435357.179:141): arch=40000003 syscall=102
success=no exit=-13 a0=3 a1=bfb44ee0 a2=9dccad8 a3=3 items=0 ppid=15563
pid=15667 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0
tty=(none) ses=16 comm="sendmail" exe="/usr/sbin/ssmtp"
subj=system_u:system_r:logwatch_t:s0-s0:c0.c1023 key=(null)

Version-Release number of selected component (if applicable):

selinux-policy-targeted-3.3.1-74.fc9.noarch
(and ssmtp-2.61-11.5.fc9.3.i386)

How reproducible: Always.

Steps to Reproduce:
1. Use ssmtp as mta and let cron.daily run logwatch.

Is this related to bug 448608 ?
Comment 1 Daniel Walsh 2008-07-22 06:32:05 EDT
If you chcon -t sendmail_exec_t /usr/sbin/ssmtp

Does it work?
Comment 2 Vegard Lima 2008-07-23 05:26:09 EDT
Yes it does. Thanks.
Comment 3 Daniel Walsh 2008-07-24 13:53:26 EDT
Fixed in selinux-policy-3.3.1-80.fc9.noarch
Comment 4 Vegard Lima 2008-08-07 08:50:36 EDT
Feel free to close this.
Does work with selinux-policy-3.3.1-82.fc9.noarch

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