Bug 1284967

Summary: SELinux is preventing abrt-dump-xorg from 'execute' accesses on the file /usr/bin/Xorg.
Product: [Fedora] Fedora Reporter: Alex <liolick>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 23CC: dominick.grift, dwalsh, jfilak, lvrabec, mgrepl, plautrba
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:23edfb6aa475d193ca457599fd6388b36ee25826cf9e20495b34993872e910a8;
Fixed In Version: selinux-policy-3.13.1-158.5.fc23 selinux-policy-3.13.1-158.6.fc23 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-02-17 03:50:25 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Alex 2015-11-24 14:53:40 UTC
Description of problem:
SELinux is preventing abrt-dump-xorg from 'execute' accesses on the file /usr/bin/Xorg.

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

If вы считаете, что abrt-dump-xorg следует разрешить доступ execute к Xorg file по умолчанию.
Then рекомендуется создать отчет об ошибке.
Чтобы разрешить доступ, можно создать локальный модуль политики.
Do
чтобы разрешить доступ, выполните:
# grep abrt-dump-xorg /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:abrt_dump_oops_t:s0
Target Context                system_u:object_r:xserver_exec_t:s0
Target Objects                /usr/bin/Xorg [ file ]
Source                        abrt-dump-xorg
Source Path                   abrt-dump-xorg
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           xorg-x11-server-Xorg-1.18.0-2.fc23.x86_64
Policy RPM                    selinux-policy-3.13.1-154.fc23.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.2.6-300.fc23.x86_64 #1 SMP Tue
                              Nov 10 19:32:21 UTC 2015 x86_64 x86_64
Alert Count                   8
First Seen                    2015-11-16 12:23:11 CET
Last Seen                     2015-11-21 06:36:15 CET
Local ID                      a99b633b-5f04-46f9-90f6-86a5c2aa68b7

Raw Audit Messages
type=AVC msg=audit(1448084175.544:522): avc:  denied  { execute } for  pid=2583 comm="abrt-dump-xorg" name="Xorg" dev="sda4" ino=1975947 scontext=system_u:system_r:abrt_dump_oops_t:s0 tcontext=system_u:object_r:xserver_exec_t:s0 tclass=file permissive=0


Hash: abrt-dump-xorg,abrt_dump_oops_t,xserver_exec_t,file,execute

Version-Release number of selected component:
selinux-policy-3.13.1-154.fc23.noarch

Additional info:
reporter:       libreport-2.6.3
hashmarkername: setroubleshoot
kernel:         4.2.6-300.fc23.x86_64
type:           libreport

Comment 1 Miroslav Grepl 2016-01-21 14:58:49 UTC
A new functionality?

Comment 2 Jakub Filak 2016-02-08 08:19:17 UTC
Yes, we test if /usr/bin/Xorg has X attribute to make sure the found backtrace was produced by that program:
https://github.com/abrt/abrt/blob/master/src/plugins/xorg-utils.c#L106

Comment 3 Lukas Vrabec 2016-02-08 10:13:45 UTC
commit acae975716c88fc93d8a11d0ed1c8bd5c6c188f4
Author: Lukas Vrabec <lvrabec@redhat.com>
Date:   Mon Feb 8 11:11:17 2016 +0100

    Allow abrt_dump_oops_t to check permissions for a /usr/bin/Xorg. rhbz#1284967
    
    AVC caused by this line in abrt:
    https://github.com/abrt/abrt/blob/master/src/plugins/xorg-utils.c#L107

Comment 4 Fedora Update System 2016-02-11 14:21:24 UTC
selinux-policy-3.13.1-158.6.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-36a160982c

Comment 5 Fedora Update System 2016-02-14 16:23:22 UTC
selinux-policy-3.13.1-158.6.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-36a160982c

Comment 6 Fedora Update System 2016-02-17 03:49:52 UTC
selinux-policy-3.13.1-158.6.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.