Bug 874070

Summary: SELinux is preventing /usr/bin/mailx from 'append' accesses on the file /var/lib/rkhunter/rkhcronlog.fkv5qCW9gZ.
Product: [Fedora] Fedora Reporter: Marco Guazzone <marco.guazzone>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 17CC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:7a37c5c13023bcae7095d0a902d55fbe16ad49bc5784e1fe8886d7353814a518
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-11-07 12:56:03 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:
Attachments:
Description Flags
File: type
none
File: hashmarkername none

Description Marco Guazzone 2012-11-07 12:21:32 UTC
Additional info:
libreport version: 2.0.18
kernel:         3.6.5-1.fc17.x86_64

description:
:SELinux is preventing /usr/bin/mailx from 'append' accesses on the file /var/lib/rkhunter/rkhcronlog.fkv5qCW9gZ.
:
:*****  Plugin restorecon (93.9 confidence) suggests  *************************
:
:If you want to fix the label. 
:/var/lib/rkhunter/rkhcronlog.fkv5qCW9gZ default label should be var_lib_t.
:Then you can run restorecon.
:Do
:# /sbin/restorecon -v /var/lib/rkhunter/rkhcronlog.fkv5qCW9gZ
:
:*****  Plugin leaks (6.10 confidence) suggests  ******************************
:
:If you want to ignore mailx trying to append access the rkhcronlog.fkv5qCW9gZ 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/bin/mailx /var/log/audit/audit.log | audit2allow -D -M mypol
:# semodule -i mypol.pp
:
:*****  Plugin catchall (1.43 confidence) suggests  ***************************
:
:If you believe that mailx should be allowed append access on the rkhcronlog.fkv5qCW9gZ 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 mail /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.fkv5qCW9gZ [ file ]
:Source                        mail
:Source Path                   /usr/bin/mailx
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           mailx-12.5-5.fc17.x86_64
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-156.fc17.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.6.5-1.fc17.x86_64 #1 SMP Wed Oct
:                              31 19:37:18 UTC 2012 x86_64 x86_64
:Alert Count                   1
:First Seen                    2012-11-07 10:53:02 CET
:Last Seen                     2012-11-07 10:53:02 CET
:Local ID                      ba4f8084-8765-436b-8897-d0011466a215
:
:Raw Audit Messages
:type=AVC msg=audit(1352281982.359:100): avc:  denied  { append } for  pid=6019 comm="mail" path="/var/lib/rkhunter/rkhcronlog.fkv5qCW9gZ" dev="sda5" ino=529113 scontext=system_u:system_r:system_mail_t:s0-s0:c0.c1023 tcontext=system_u:object_r:cron_var_lib_t:s0 tclass=file
:
:
:type=SYSCALL msg=audit(1352281982.359:100): arch=x86_64 syscall=execve success=yes exit=0 a0=daa100 a1=d441d0 a2=9f6500 a3=28 items=0 ppid=24047 pid=6019 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=3 comm=mail exe=/usr/bin/mailx subj=system_u:system_r:system_mail_t:s0-s0:c0.c1023 key=(null)
:
:Hash: mail,system_mail_t,cron_var_lib_t,file,append
:
:audit2allow
:
:#============= system_mail_t ==============
:allow system_mail_t cron_var_lib_t:file append;
:
:audit2allow -R
:
:#============= system_mail_t ==============
:allow system_mail_t cron_var_lib_t:file append;
:


Potential duplicate bug: 659651

Comment 1 Marco Guazzone 2012-11-07 12:21:36 UTC
Created attachment 640021 [details]
File: type

Comment 2 Marco Guazzone 2012-11-07 12:21:38 UTC
Created attachment 640022 [details]
File: hashmarkername

Comment 3 Miroslav Grepl 2012-11-07 12:56:03 UTC

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