Bug 758064 - SELinux is preventing /usr/sbin/exim from 'append' accesses on the file /var/lib/rkhunter/rkhcronlog.WxzHJfwUYD.
Summary: SELinux is preventing /usr/sbin/exim from 'append' accesses on the file /var/...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 15
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:9c1a7f86a79...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-11-29 10:07 UTC by Frank Murphy
Modified: 2011-11-29 10:09 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-11-29 10:09:05 UTC
Type: ---


Attachments (Terms of Use)

Description Frank Murphy 2011-11-29 10:07:24 UTC
SELinux is preventing /usr/sbin/exim from 'append' accesses on the file /var/lib/rkhunter/rkhcronlog.WxzHJfwUYD.

*****  Plugin restorecon (98.5 confidence) suggests  *************************

If you want to fix the label. 
/var/lib/rkhunter/rkhcronlog.WxzHJfwUYD default label should be var_lib_t.
Then you can run restorecon.
Do
# /sbin/restorecon -v /var/lib/rkhunter/rkhcronlog.WxzHJfwUYD

*****  Plugin catchall (1.48 confidence) suggests  ***************************

If you believe that exim should be allowed append access on the rkhcronlog.WxzHJfwUYD file by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
Do
allow this access for now by executing:
# grep sendmail /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

*****  Plugin leaks (1.48 confidence) suggests  ******************************

If you want to ignore exim trying to append access the rkhcronlog.WxzHJfwUYD file, because you believe it should not need this access.
Then you should report this as a bug.  
You can generate a local policy module to dontaudit this access.
Do
# grep /usr/sbin/exim /var/log/audit/audit.log | audit2allow -D -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:exim_t:s0-s0:c0.c1023
Target Context                system_u:object_r:cron_var_lib_t:s0
Target Objects                /var/lib/rkhunter/rkhcronlog.WxzHJfwUYD [ file ]
Source                        sendmail
Source Path                   /usr/sbin/exim
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           exim-4.72-2.fc14
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.7-40.fc14
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed)
                              2.6.35.13-91.fc14.x86_64 #1 SMP Tue May 3 13:23:06
                              UTC 2011 x86_64 x86_64
Alert Count                   3
First Seen                    Wed 13 Apr 2011 10:00:38 IST
Last Seen                     Sun 15 May 2011 03:40:25 IST
Local ID                      0c16081e-6617-47a0-9426-e1994e22bff5

Raw Audit Messages
type=AVC msg=audit(1305427225.863:132): avc:  denied  { append } for  pid=32142 comm="sendmail" path="/var/lib/rkhunter/rkhcronlog.WxzHJfwUYD" dev=dm-2 ino=262236 scontext=system_u:system_r:exim_t:s0-s0:c0.c1023 tcontext=system_u:object_r:cron_var_lib_t:s0 tclass=file


type=SYSCALL msg=audit(1305427225.863:132): arch=x86_64 syscall=execve success=yes exit=0 a0=451e50 a1=b66ec8 a2=7fff256d0ae0 a3=8 items=0 ppid=1 pid=32142 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=17 comm=sendmail exe=/usr/sbin/exim subj=system_u:system_r:exim_t:s0-s0:c0.c1023 key=(null)

Hash: sendmail,exim_t,cron_var_lib_t,file,append

audit2allow

#============= exim_t ==============
allow exim_t cron_var_lib_t:file append;

audit2allow -R

#============= exim_t ==============
allow exim_t cron_var_lib_t:file append;

Comment 1 Frank Murphy 2011-11-29 10:09:05 UTC
*Apologies* sent in error.


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