Bug 225353 - selinux denials with exim
selinux denials with exim
Status: CLOSED INSUFFICIENT_DATA
Product: Fedora
Classification: Fedora
Component: selinux-policy (Show other bugs)
rawhide
All Linux
medium Severity medium
: ---
: ---
Assigned To: Daniel Walsh
Ben Levenson
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2007-01-29 21:08 EST by Jesse Keating
Modified: 2013-01-09 21:35 EST (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2007-05-17 12:26:26 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 Jesse Keating 2007-01-29 21:08:05 EST
I get a few selinux denials when using exim on a default install.

avc: denied { setuid } for comm="sendmail" egid=93 euid=0 exe="/usr/sbin/exim"
exit=-1 fsgid=93 fsuid=0 gid=93 items=0 pid=2411
scontext=system_u:system_r:logwatch_t:s0-s0:c0.c1023 sgid=93
subj=system_u:system_r:logwatch_t:s0-s0:c0.c1023 suid=0 tclass=capability
tcontext=system_u:system_r:logwatch_t:s0-s0:c0.c1023 tty=(none) uid=0 

avc: denied { append } for comm="sendmail" dev=dm-0 egid=93 euid=0
exe="/usr/sbin/exim" exit=-13 fsgid=93 fsuid=0 gid=93 items=0 name="main.log"
pid=2410 scontext=system_u:system_r:logwatch_t:s0-s0:c0.c1023 sgid=93
subj=system_u:system_r:logwatch_t:s0-s0:c0.c1023 suid=0 tclass=file
tcontext=system_u:object_r:var_log_t:s0 tty=(none) uid=0 

avc: denied { write } for comm="sendmail" dev=tmpfs egid=93 euid=0
exe="/usr/sbin/exim" exit=-13 fsgid=93 fsuid=0 gid=93 items=0 name="console"
pid=2409 scontext=system_u:system_r:logwatch_t:s0-s0:c0.c1023 sgid=93
subj=system_u:system_r:logwatch_t:s0-s0:c0.c1023 suid=0 tclass=chr_file
tcontext=system_u:object_r:console_device_t:s0 tty=(none) uid=0

avc: denied { write } for comm="sendmail" dev=dm-0 egid=93 euid=0
exe="/usr/sbin/exim" exit=-13 fsgid=93 fsuid=0 gid=93 items=0 name="exim"
pid=2411 scontext=system_u:system_r:logwatch_t:s0-s0:c0.c1023 sgid=93
subj=system_u:system_r:logwatch_t:s0-s0:c0.c1023 suid=0 tclass=dir
tcontext=system_u:object_r:var_log_t:s0 tty=(none) uid=0 

avc: denied { create } for comm="sendmail" egid=93 euid=0 exe="/usr/sbin/exim"
exit=-13 fsgid=93 fsuid=0 gid=93 items=0 pid=2409
scontext=system_u:system_r:logwatch_t:s0-s0:c0.c1023 sgid=93
subj=system_u:system_r:logwatch_t:s0-s0:c0.c1023 suid=0 tclass=unix_dgram_socket
tcontext=system_u:system_r:logwatch_t:s0-s0:c0.c1023 tty=(none) uid=0 

exim gets picked as the provider of /usr/bin/sendmail, because it has the
shortest name out of sendmail, postfix, or exim.
Comment 1 Daniel Walsh 2007-02-01 14:47:12 EST
If you chcon -t sendmail_exec_t /usr/sbin/exim, does the problem go away?
Comment 2 Jesse Keating 2007-02-09 15:13:47 EST
I can't seem to duplicate this.  Did you do any selinux changes for exim recently?
Comment 3 Daniel Walsh 2007-02-12 10:20:32 EST
no
Comment 4 Scott Talbot 2007-02-20 12:59:46 EST
Just my 2 cents here, but I received a few similar errors today.  They were
easily fixed through advice from setroubleshoot however. the fixes were

semanage fcontext -a -t bin_t sudoedit
restorecon -v /var/log/exim/main.log
setsebool -P allow_daemons_use_tty=1
restorecon /var/log/exim/panic.log

Not sure why or when I started getting these and I don't recall the specific errors.

Hope this helps
Comment 5 Daniel Walsh 2007-02-20 16:47:35 EST
Please attach your avc messages?

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