Bug 1316314

Summary: SELinux is preventing abrt-dump-xorg from 'execute' accesses on the file /usr/bin/Xorg.
Product: [Fedora] Fedora Reporter: Antonio <joarivera>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 22CC: dominick.grift, dwalsh, Gutepost, lvrabec, mgrepl, plautrba, rickvek, roshandel_h, titaniumkeys
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:23edfb6aa475d193ca457599fd6388b36ee25826cf9e20495b34993872e910a8;VARIANT_ID=workstation;
Fixed In Version: selinux-policy-3.13.1-128.28.fc22 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-19 18:45:54 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 Antonio 2016-03-10 00:06:35 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 you believe that abrt-dump-xorg should be allowed execute access on the Xorg 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 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.17.4-1.fc22.x86_64
Policy RPM                    selinux-policy-3.13.1-128.21.fc22.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 4.3.6-201.fc22.x86_64 #1 SMP Mon
                              Feb 22 13:39:09 UTC 2016 x86_64 x86_64
Alert Count                   3
First Seen                    2016-03-01 19:29:34 AST
Last Seen                     2016-03-04 11:20:38 AST
Local ID                      b27a72e8-557e-46b9-9d32-bac45ad7e9b2

Raw Audit Messages
type=AVC msg=audit(1457104838.163:94): avc:  denied  { execute } for  pid=915 comm="abrt-dump-xorg" name="Xorg" dev="dm-1" ino=542497 scontext=system_u:system_r:abrt_dump_oops_t:s0 tcontext=system_u:object_r:xserver_exec_t:s0 tclass=file permissive=1


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

Version-Release number of selected component:
selinux-policy-3.13.1-128.21.fc22.noarch

Additional info:
reporter:       libreport-2.6.4
hashmarkername: setroubleshoot
kernel:         4.4.3-201.fc22.x86_64
type:           libreport

Potential duplicate: bug 1284967

Comment 1 Lukas Vrabec 2016-03-10 10:10:32 UTC
commit 48ae8c535c1ed375b10ecae41b271ee3594f7985
Author: Lukas Vrabec <lvrabec>
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 2 e.m. 2016-04-02 18:33:59 UTC
*** Bug 1323418 has been marked as a duplicate of this bug. ***

Comment 3 Yves Bourdic 2016-04-22 15:42:20 UTC
Description of problem:
after .autorelabel, using iPhone tethering for Internet access (via USB)

Version-Release number of selected component:
selinux-policy-3.13.1-128.21.fc22.noarch

Additional info:
reporter:       libreport-2.6.4
hashmarkername: setroubleshoot
kernel:         4.4.6-201.fc22.x86_64
type:           libreport

Comment 4 Fedora End Of Life 2016-07-19 18:45:54 UTC
Fedora 22 changed to end-of-life (EOL) status on 2016-07-19. Fedora 22 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.