Bug 821624 - SELinux is preventing /bin/cat from 'read' accesses on the file /var/spool/vscan/var/log/sagator/sagator.log.
SELinux is preventing /bin/cat from 'read' accesses on the file /var/spool/vs...
Status: CLOSED WONTFIX
Product: Fedora
Classification: Fedora
Component: selinux-policy (Show other bugs)
16
i686 Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Miroslav Grepl
Fedora Extras Quality Assurance
abrt_hash:55caef6983cf8803ab7ade7e4dc...
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2012-05-15 03:08 EDT by geminic86
Modified: 2012-05-15 04:46 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2012-05-15 04:46:17 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 geminic86 2012-05-15 03:08:07 EDT
libreport version: 2.0.8
executable:     /usr/bin/python2.7
hashmarkername: setroubleshoot
kernel:         3.3.5-2.fc16.i686.PAEdebug
reason:         SELinux is preventing /bin/cat from 'read' accesses on the file /var/spool/vscan/var/log/sagator/sagator.log.
time:           Tue 15 May 2012 03:07:52 AM EDT

description:
:SELinux is preventing /bin/cat from 'read' accesses on the file /var/spool/vscan/var/log/sagator/sagator.log.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that cat should be allowed read access on the sagator.log 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 cat /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                system_u:system_r:logwatch_t:s0-s0:c0.c1023
:Target Context                system_u:object_r:sagator_var_t:s0
:Target Objects                /var/spool/vscan/var/log/sagator/sagator.log [
:                              file ]
:Source                        cat
:Source Path                   /bin/cat
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           coreutils-8.12-7.fc16.i686
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-86.fc16.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Permissive
:Host Name                     (removed)
:Platform                      Linux (removed) 3.3.5-2.fc16.i686.PAEdebug #1 SMP Tue
:                              May 8 11:21:48 UTC 2012 i686 i686
:Alert Count                   1
:First Seen                    Tue 15 May 2012 03:06:09 AM EDT
:Last Seen                     Tue 15 May 2012 03:06:09 AM EDT
:Local ID                      d59b7f07-fbf7-4944-b4bf-a79877b67edc
:
:Raw Audit Messages
:type=AVC msg=audit(1337065569.986:1524): avc:  denied  { read } for  pid=17454 comm="cat" name="sagator.log" dev="dm-1" ino=1710641 scontext=system_u:system_r:logwatch_t:s0-s0:c0.c1023 tcontext=system_u:object_r:sagator_var_t:s0 tclass=file
:
:
:type=AVC msg=audit(1337065569.986:1524): avc:  denied  { open } for  pid=17454 comm="cat" name="sagator.log" dev="dm-1" ino=1710641 scontext=system_u:system_r:logwatch_t:s0-s0:c0.c1023 tcontext=system_u:object_r:sagator_var_t:s0 tclass=file
:
:
:type=SYSCALL msg=audit(1337065569.986:1524): arch=i386 syscall=open success=yes exit=ESRCH a0=bfcf8e2b a1=8000 a2=0 a3=1 items=0 ppid=17453 pid=17454 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=135 comm=cat exe=/bin/cat subj=system_u:system_r:logwatch_t:s0-s0:c0.c1023 key=(null)
:
:Hash: cat,logwatch_t,sagator_var_t,file,read
:
:audit2allow
:
:#============= logwatch_t ==============
:allow logwatch_t sagator_var_t:file { read open };
:
:audit2allow -R
:
:#============= logwatch_t ==============
:allow logwatch_t sagator_var_t:file { read open };
:

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