Bug 1516245 - SELinux is preventing gdb from 'write' accesses on the directory /usr/lib64/python3.6/__pycache__.
Summary: SELinux is preventing gdb from 'write' accesses on the directory /usr/lib64/p...
Keywords:
Status: CLOSED DUPLICATE of bug 1418836
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 26
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:0bdcca573488b118213ee42108c...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-11-22 11:01 UTC by Dominik 'Rathann' Mierzejewski
Modified: 2017-12-11 11:58 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2017-12-11 11:58:02 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Dominik 'Rathann' Mierzejewski 2017-11-22 11:01:24 UTC
Description of problem:
SELinux is preventing gdb from 'write' accesses on the directory /usr/lib64/python3.6/__pycache__.

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

If you believe that gdb should be allowed write access on the __pycache__ directory 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:
# ausearch -c 'gdb' --raw | audit2allow -M my-gdb
# semodule -X 300 -i my-gdb.pp

Additional Information:
Source Context                system_u:system_r:abrt_t:s0-s0:c0.c1023
Target Context                system_u:object_r:lib_t:s0
Target Objects                /usr/lib64/python3.6/__pycache__ [ dir ]
Source                        gdb
Source Path                   gdb
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    <Unknown>
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.14.0-1.fc28.x86_64 #1 SMP Mon
                              Nov 13 14:09:27 UTC 2017 x86_64 x86_64
Alert Count                   64
First Seen                    2017-11-22 11:59:18 CET
Last Seen                     2017-11-22 11:59:20 CET
Local ID                      b8e9d26a-6688-41a0-8622-6d5b220abd0a

Raw Audit Messages
type=AVC msg=audit(1511348360.934:1049): avc:  denied  { write } for  pid=31126 comm="abrt-action-not" name="__pycache__" dev="dm-2" ino=653687 scontext=system_u:system_r:abrt_t:s0-s0:c0.c1023 tcontext=system_u:object_r:lib_t:s0 tclass=dir permissive=0


Hash: gdb,abrt_t,lib_t,dir,write


Additional info:
component:      selinux-policy
reporter:       libreport-2.9.1
hashmarkername: setroubleshoot
kernel:         4.14.0-1.fc28.x86_64
type:           libreport

Potential duplicate: bug 1418836

Comment 1 Lukas Vrabec 2017-12-11 11:58:02 UTC

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


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