Bug 882576

Summary: SELinux is preventing /usr/sbin/skdump from 'read' accesses on the blk_file sdg.
Product: [Fedora] Fedora Reporter: bm_boris
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:b5d10218f8ecf716240dc4a597b3f824147e69216ea4ca512e580ad75831fb1c
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-12-03 10:09:21 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 bm_boris 2012-12-02 01:07:24 UTC
Description of problem:
I was accessing a file from one of my storage devices (old Philips GoGear Media player SAXX model I think) and I extracted a zipped file and it gave me these errors I think. 

Additional info:
libreport version: 2.0.18
kernel:         3.6.7-4.fc17.x86_64

description:
:SELinux is preventing /usr/sbin/skdump from 'read' accesses on the blk_file sdg.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that skdump should be allowed read access on the sdg blk_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 skdump /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:fixed_disk_device_t:s0
:Target Objects                sdg [ blk_file ]
:Source                        skdump
:Source Path                   /usr/sbin/skdump
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           libatasmart-0.18-2.fc17.x86_64
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-161.fc17.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.6.7-4.fc17.x86_64 #1 SMP Tue Nov
:                              20 19:40:01 UTC 2012 x86_64 x86_64
:Alert Count                   6
:First Seen                    2012-12-01 18:53:34 CST
:Last Seen                     2012-12-01 18:53:34 CST
:Local ID                      27e10958-c05e-4198-bbb8-a171044a822f
:
:Raw Audit Messages
:type=AVC msg=audit(1354409614.682:745): avc:  denied  { read } for  pid=7969 comm="skdump" name="sdg" dev="devtmpfs" ino=1758265 scontext=system_u:system_r:abrt_t:s0-s0:c0.c1023 tcontext=system_u:object_r:fixed_disk_device_t:s0 tclass=blk_file
:
:
:type=SYSCALL msg=audit(1354409614.682:745): arch=x86_64 syscall=open success=no exit=EACCES a0=24986c0 a1=80900 a2=0 a3=9 items=0 ppid=7962 pid=7969 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=skdump exe=/usr/sbin/skdump subj=system_u:system_r:abrt_t:s0-s0:c0.c1023 key=(null)
:
:Hash: skdump,abrt_t,fixed_disk_device_t,blk_file,read
:
:audit2allow
:
:#============= abrt_t ==============
:allow abrt_t fixed_disk_device_t:blk_file read;
:
:audit2allow -R
:
:#============= abrt_t ==============
:allow abrt_t fixed_disk_device_t:blk_file read;
:


Potential duplicate bug: 799713

Comment 1 bm_boris 2012-12-02 01:07:31 UTC
Created attachment 655801 [details]
File: type

Comment 2 bm_boris 2012-12-02 01:07:37 UTC
Created attachment 655802 [details]
File: hashmarkername

Comment 3 Miroslav Grepl 2012-12-03 10:09:21 UTC

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