Bug 1506116 - SELinux is preventing gnome-shell from using the 'getattr' accesses on a process.
Summary: SELinux is preventing gnome-shell from using the 'getattr' accesses on a proc...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 27
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:dfbe07e2f3d5dce79669bc26e4f...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-10-25 07:45 UTC by Michał
Modified: 2018-01-10 02:07 UTC (History)
6 users (show)

Fixed In Version: selinux-policy-3.13.1-283.21.fc27
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-01-10 02:07:17 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Michał 2017-10-25 07:45:11 UTC
Description of problem:
SELinux is preventing gnome-shell from using the 'getattr' accesses on a process.

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

If jeśli gnome-shell powinno mieć domyślnie getattr dostęp do procesów z etykietami xserver_t.
Then proszę to zgłosić jako błąd.
Można utworzyć lokalny moduł polityki, aby umożliwić ten dostęp.
Do
allow this access for now by executing:
# ausearch -c 'gnome-shell' --raw | audit2allow -M my-gnomeshell
# semodule -X 300 -i my-gnomeshell.pp

Additional Information:
Source Context                system_u:system_r:xdm_t:s0-s0:c0.c1023
Target Context                system_u:system_r:xserver_t:s0-s0:c0.c1023
Target Objects                Unknown [ process ]
Source                        gnome-shell
Source Path                   gnome-shell
Port                          <Nieznane>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-283.10.fc27.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.13.8-300.fc27.x86_64 #1 SMP Wed
                              Oct 18 15:32:19 UTC 2017 x86_64 x86_64
Alert Count                   1
First Seen                    2017-10-24 23:39:19 CEST
Last Seen                     2017-10-24 23:39:19 CEST
Local ID                      f8c59ce9-26b6-4be2-a56d-e37ae2f60077

Raw Audit Messages
type=AVC msg=audit(1508881159.265:1183): avc:  denied  { getattr } for  pid=2067 comm="gnome-shell" scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=system_u:system_r:xserver_t:s0-s0:c0.c1023 tclass=process permissive=0


Hash: gnome-shell,xdm_t,xserver_t,process,getattr
	

Version-Release number of selected component:
selinux-policy-3.13.1-283.10.fc27.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.9.2
hashmarkername: setroubleshoot
kernel:         4.13.8-300.fc27.x86_64
type:           libreport

Comment 1 uncorifle 2017-12-23 00:15:13 UTC
I get this same error, upon resuming my computer from standby. Fedora 27.

I have a newer kernel/platform:
Linux [hostname] 4.14.7-300.fc27.x86_64 #1 SMP Mon Dec 18 16:06:12 UTC 2017 x86_64 x86_64

And slightly newer policy RPM:
selinux-policy-3.13.1-283.17.fc27.noarch

I'm running an xorg session (not wayland) due to having an nvidia graphics card.

Comment 2 Fedora Update System 2018-01-05 14:46:56 UTC
selinux-policy-3.13.1-283.21.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2018-0d8506aba4

Comment 3 Fedora Update System 2018-01-05 14:49:32 UTC
selinux-policy-3.13.1-283.21.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2018-0d8506aba4

Comment 4 Fedora Update System 2018-01-06 21:09:04 UTC
selinux-policy-3.13.1-283.21.fc27 has been pushed to the Fedora 27 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-2018-0d8506aba4

Comment 5 Fedora Update System 2018-01-10 02:07:17 UTC
selinux-policy-3.13.1-283.21.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.


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