Bug 1398875 - SELinux is preventing lightdm from 'execute' accesses on the file screen.sh.
Summary: SELinux is preventing lightdm from 'execute' accesses on the file screen.sh.
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 25
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:9d08cd318d72c6837b9b4c5327e...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-11-26 22:18 UTC by Фукидид
Modified: 2016-11-30 13:15 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-11-30 13:15:14 UTC
Type: ---


Attachments (Terms of Use)

Description Фукидид 2016-11-26 22:18:36 UTC
Description of problem:
http://www.linuxrussia.com/2013/08/xrandr-linux-ubuntu.html
SELinux is preventing lightdm from 'execute' accesses on the file screen.sh.

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

If вы считаете, что lightdm следует разрешить доступ execute к screen.sh file по умолчанию.
Then рекомендуется создать отчет об ошибке.
Чтобы разрешить доступ, можно создать локальный модуль политики.
Do
allow this access for now by executing:
# ausearch -c 'lightdm' --raw | audit2allow -M my-lightdm
# semodule -X 300 -i my-lightdm.pp

Additional Information:
Source Context                system_u:system_r:xdm_t:s0-s0:c0.c1023
Target Context                unconfined_u:object_r:user_home_t:s0
Target Objects                screen.sh [ file ]
Source                        lightdm
Source Path                   lightdm
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-224.fc25.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.8.8-300.fc25.x86_64 #1 SMP Tue
                              Nov 15 18:10:06 UTC 2016 x86_64 x86_64
Alert Count                   9
First Seen                    2016-11-26 20:16:52 +03
Last Seen                     2016-11-26 20:31:17 +03
Local ID                      a78fc95a-7344-401a-b5ca-f940080d63e8

Raw Audit Messages
type=AVC msg=audit(1480181477.858:191): avc:  denied  { execute } for  pid=1509 comm="lightdm" name="screen.sh" dev="dm-3" ino=40241446 scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=0


Hash: lightdm,xdm_t,user_home_t,file,execute

Version-Release number of selected component:
selinux-policy-3.13.1-224.fc25.noarch

Additional info:
reporter:       libreport-2.8.0
hashmarkername: setroubleshoot
kernel:         4.8.8-300.fc25.x86_64
type:           libreport

Comment 1 Lukas Vrabec 2016-11-30 13:15:14 UTC
Hi, 
Please run:
# semanage fcontext -a -t xdm_exec_t PATH_TO/screen.sh
# restorecon PATH_TO/screen.sh

To fix your issue.


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