Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1055902 - SELinux is preventing /usr/bin/cat from 'read' accesses on the file .
Summary: SELinux is preventing /usr/bin/cat from 'read' accesses on the file .
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: i686
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:53b7fa1711f9e61c4f69431bd12...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-01-21 07:56 UTC by Christopher Meng
Modified: 2014-01-21 11:50 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-01-21 11:50:50 UTC


Attachments (Terms of Use)

Description Christopher Meng 2014-01-21 07:56:30 UTC
Description of problem:
SELinux is preventing /usr/bin/cat from 'read' accesses on the file .

*****  Plugin catchall (100. confidence) suggests   **************************

If you believe that cat should be allowed read access on the  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:abrt_t:s0-s0:c0.c1023
Target Context                system_u:object_r:usermodehelper_t:s0
Target Objects                 [ file ]
Source                        cat
Source Path                   /usr/bin/cat
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           coreutils-8.22-10.fc21.i686
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-14.fc21.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.13.0-0.rc8.git4.2.fc21.i686 #1
                              SMP Sat Jan 18 16:29:05 UTC 2014 i686 i686
Alert Count                   1
First Seen                    2014-01-21 15:32:32 CST
Last Seen                     2014-01-21 15:32:32 CST
Local ID                      b38e7f0b-5cd6-4c04-aa62-132f17540b56

Raw Audit Messages
type=AVC msg=audit(1390289552.273:24): avc:  denied  { read } for  pid=555 comm="cat" name="core_pattern" dev="proc" ino=15813 scontext=system_u:system_r:abrt_t:s0-s0:c0.c1023 tcontext=system_u:object_r:usermodehelper_t:s0 tclass=file


type=SYSCALL msg=audit(1390289552.273:24): arch=i386 syscall=open success=no exit=EACCES a0=bfb8defa a1=8000 a2=0 a3=8054e20 items=0 ppid=549 pid=555 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 ses=4294967295 tty=(none) comm=cat exe=/usr/bin/cat subj=system_u:system_r:abrt_t:s0-s0:c0.c1023 key=(null)

Hash: cat,abrt_t,usermodehelper_t,file,read

Additional info:
reporter:       libreport-2.1.11
hashmarkername: setroubleshoot
kernel:         3.13.0-0.rc8.git4.2.fc21.i686
type:           libreport

Comment 1 Miroslav Grepl 2014-01-21 11:50:50 UTC
commit a08e015274e5ae32e7bd9a16ba10173da6a71e2e
Author: Miroslav Grepl <mgrepl@redhat.com>
Date:   Tue Jan 21 12:47:23 2014 +0100

    Allow ABRT to read core_pattern


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