Bug 672508 - SELinux is preventing /usr/sbin/sendmail.sendmail from 'getattr' accesses on the file /var/lib/rkhunter/rkhcronlog.DslCJL3CTP.
Summary: SELinux is preventing /usr/sbin/sendmail.sendmail from 'getattr' accesses on ...
Keywords:
Status: CLOSED DUPLICATE of bug 660544
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 14
Hardware: i386
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:7663889e852...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-01-25 11:57 UTC by Tomas Straupis
Modified: 2011-11-11 15:37 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-01-25 12:22:34 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Tomas Straupis 2011-01-25 11:57:58 UTC
SELinux is preventing /usr/sbin/sendmail.sendmail from 'getattr' accesses on the file /var/lib/rkhunter/rkhcronlog.DslCJL3CTP.

*****  Plugin restorecon (99.5 confidence) suggests  *************************

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

*****  Plugin catchall (1.49 confidence) suggests  ***************************

If you believe that sendmail.sendmail should be allowed getattr access on the rkhcronlog.DslCJL3CTP 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

Additional Information:
Source Context                system_u:system_r:system_mail_t:s0-s0:c0.c1023
Target Context                system_u:object_r:cron_var_lib_t:s0
Target Objects                /var/lib/rkhunter/rkhcronlog.DslCJL3CTP [ file ]
Source                        sendmail
Source Path                   /usr/sbin/sendmail.sendmail
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           sendmail-8.14.4-10.fc14
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.7-20.fc14
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 2.6.35.10-74.fc14.i686.PAE
                              #1 SMP Thu Dec 23 16:10:47 UTC 2010 i686 i686
Alert Count                   1
First Seen                    2011 m. sausio 25 d. 03:40:07
Last Seen                     2011 m. sausio 25 d. 03:40:07
Local ID                      790e29bf-3006-4f26-94c1-4e1a9ac0cc23

Raw Audit Messages
type=AVC msg=audit(1295919607.759:28176): avc:  denied  { getattr } for  pid=18419 comm="sendmail" path="/var/lib/rkhunter/rkhcronlog.DslCJL3CTP" dev=dm-0 ino=20262 scontext=system_u:system_r:system_mail_t:s0-s0:c0.c1023 tcontext=system_u:object_r:cron_var_lib_t:s0 tclass=file

sendmail,system_mail_t,cron_var_lib_t,file,getattr
type=SYSCALL msg=audit(1295919607.759:28176): arch=i386 syscall=fstat64 success=yes exit=0 a0=1 a1=bfb207fc a2=447ff4 a3=3 items=0 ppid=1 pid=18419 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=51 sgid=51 fsgid=51 tty=(none) ses=438 comm=sendmail exe=/usr/sbin/sendmail.sendmail subj=system_u:system_r:system_mail_t:s0-s0:c0.c1023 key=(null)
sendmail,system_mail_t,cron_var_lib_t,file,getattr

#============= system_mail_t ==============
allow system_mail_t cron_var_lib_t:file getattr;

Comment 1 Tomas Straupis 2011-01-25 12:02:17 UTC
This SE warning is produced during nightly cron jobs.
I have both sendmail 8.14.4 and rkhunter 1.3.8 installed.
selinux-policy-targeted-3.9.7-20.fc14.noarch
selinux-policy-3.9.7-20.fc14.noarch

Comment 2 Miroslav Grepl 2011-01-25 12:22:34 UTC

*** This bug has been marked as a duplicate of bug 660544 ***


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