Bug 841675

Summary: SELinux is preventing /usr/lib64/sa/sadc from 'read' accesses on the file /var/log/sa/sa19.
Product: [Fedora] Fedora Reporter: zic <zic-rhn>
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:b591d345db64f8225dc1697bd3d04bc15b4ada0126c603890a5fe8c41a112c21
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-07-19 22:01:16 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:

Description zic 2012-07-19 20:23:15 UTC
libreport version: 2.0.10
executable:     /usr/bin/python2.7
hashmarkername: setroubleshoot
kernel:         3.4.4-5.fc17.x86_64
time:           Fri 20 Jul 2012 05:23:01 AM JST

description:
:SELinux is preventing /usr/lib64/sa/sadc from 'read' accesses on the file /var/log/sa/sa19.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that sadc should be allowed read access on the sa19 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 sadc /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                system_u:system_r:sysstat_t:s0-s0:c0.c1023
:Target Context                system_u:object_r:var_log_t:s0
:Target Objects                /var/log/sa/sa19 [ file ]
:Source                        sadc
:Source Path                   /usr/lib64/sa/sadc
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           sysstat-10.0.3-2.fc17.x86_64
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-137.fc17.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux Remba.Tahri 3.4.4-5.fc17.x86_64 #1 SMP Thu
:                              Jul 5 20:20:59 UTC 2012 x86_64 x86_64
:Alert Count                   131
:First Seen                    Thu 19 Jul 2012 02:20:57 AM JST
:Last Seen                     Thu 19 Jul 2012 11:53:01 PM JST
:Local ID                      ed705720-1b4d-40db-bc51-e02893124607
:
:Raw Audit Messages
:type=AVC msg=audit(1342709581.922:210310): avc:  denied  { read } for  pid=26370 comm="sar" name="sa19" dev="md114" ino=131098 scontext=system_u:system_r:sysstat_t:s0-s0:c0.c1023 tcontext=system_u:object_r:var_log_t:s0 tclass=file
:
:
:type=SYSCALL msg=audit(1342709581.922:210310): arch=x86_64 syscall=open success=no exit=EACCES a0=7fffae8bd7c0 a1=0 a2=613420 a3=2 items=0 ppid=26368 pid=26370 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=474 comm=sar exe=/usr/bin/sar subj=system_u:system_r:sysstat_t:s0-s0:c0.c1023 key=(null)
:
:Hash: sadc,sysstat_t,var_log_t,file,read
:
:audit2allowunable to open /sys/fs/selinux/policy:  Permission denied
:
:
:audit2allow -Runable to open /sys/fs/selinux/policy:  Permission denied
:
:

Comment 1 Miroslav Grepl 2012-07-19 22:01:16 UTC

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