Bug 1199187 - SELinux is preventing /usr/bin/gdb from 'open' accesses on the file /var/lib/rpm/Packages.
Summary: SELinux is preventing /usr/bin/gdb from 'open' accesses on the file /var/lib/...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: spice
Version: 22
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Christophe Fergeau
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:54b3f0b26c809c29e55b14da243...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-03-05 15:15 UTC by Kamil Páral
Modified: 2015-11-04 23:44 UTC (History)
15 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2015-11-04 23:44:06 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Kamil Páral 2015-03-05 15:15:17 UTC
Description of problem:
This happened when my virt-manager VM crashed.
SELinux is preventing /usr/bin/gdb from 'open' accesses on the file /var/lib/rpm/Packages.

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

If you believe that gdb should be allowed open access on the Packages 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 gdb /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:svirt_t:s0:c103,c609
Target Context                system_u:object_r:rpm_var_lib_t:s0
Target Objects                /var/lib/rpm/Packages [ file ]
Source                        gdb
Source Path                   /usr/bin/gdb
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           gdb-7.8.2-38.fc21.x86_64
Target RPM Packages           rpm-4.12.0.1-4.fc21.x86_64
Policy RPM                    selinux-policy-3.13.1-105.5.fc21.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 3.18.8-201.fc21.x86_64 #1 SMP Fri
                              Feb 27 18:18:27 UTC 2015 x86_64 x86_64
Alert Count                   1
First Seen                    2015-03-05 16:13:56 CET
Last Seen                     2015-03-05 16:13:56 CET
Local ID                      0c558173-7e58-4e4d-8c1d-02843817dae5

Raw Audit Messages
type=AVC msg=audit(1425568436.285:1762): avc:  denied  { open } for  pid=8307 comm="gdb" path="/var/lib/rpm/Packages" dev="dm-2" ino=3947375 scontext=system_u:system_r:svirt_t:s0:c103,c609 tcontext=system_u:object_r:rpm_var_lib_t:s0 tclass=file permissive=1


type=SYSCALL msg=audit(1425568436.285:1762): arch=x86_64 syscall=open success=yes exit=ECHILD a0=1fe6a30 a1=0 a2=0 a3=11f items=0 ppid=8303 pid=8307 auid=4294967295 uid=107 gid=107 euid=107 suid=107 fsuid=107 egid=107 sgid=107 fsgid=107 tty=(none) ses=4294967295 comm=gdb exe=/usr/bin/gdb subj=system_u:system_r:svirt_t:s0:c103,c609 key=(null)

Hash: gdb,svirt_t,rpm_var_lib_t,file,open

Version-Release number of selected component:
selinux-policy-3.13.1-105.5.fc21.noarch

Additional info:
reporter:       libreport-2.3.0
hashmarkername: setroubleshoot
kernel:         3.18.8-201.fc21.x86_64
type:           libreport

Potential duplicate: bug 1021795

Comment 1 Lukas Vrabec 2015-03-06 10:47:20 UTC
Same issue like https://bugzilla.redhat.com/show_bug.cgi?id=1021795.

Comment 2 Fedora End Of Life 2015-11-04 13:17:33 UTC
This message is a reminder that Fedora 21 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 21. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '21'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 21 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.


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