Bug 1469958 - SELinux is preventing lightdm from 'open' accesses on the file /home/malka/.xsession-errors.
SELinux is preventing lightdm from 'open' accesses on the file /home/malka/.x...
Status: NEW
Product: Fedora
Classification: Fedora
Component: selinux-policy (Show other bugs)
26
x86_64 Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Lukas Vrabec
Fedora Extras Quality Assurance
abrt_hash:59262f0a8d01f7bebbf6a123d31...
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2017-07-12 03:23 EDT by Joao Maria Arranz Aparicio
Modified: 2017-07-12 03:23 EDT (History)
7 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Joao Maria Arranz Aparicio 2017-07-12 03:23:48 EDT
Description of problem:
tras logearme con mi usuario.

After login in 
SELinux is preventing lightdm from 'open' accesses on the file /home/malka/.xsession-errors.

*****  Plugin restorecon (99.5 confidence) suggests   ************************

If quiere arreglar la etiqueta.
La etiqueta predeterminada de /home/malka/.xsession-errors debería ser xdm_home_t.
Then you can run restorecon. The access attempt may have been stopped due to insufficient permissions to access a parent directory in which case try to change the following command accordingly.
Do
# /sbin/restorecon -v /home/malka/.xsession-errors

*****  Plugin catchall (1.49 confidence) suggests   **************************

If cree que de manera predeterminada, lightdm debería permitir acceso open sobre .xsession-errors file.     
Then debería reportar esto como un error.
Puede generar un módulo de política local para permitir este acceso.
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:home_root_t:s0
Target Objects                /home/malka/.xsession-errors [ file ]
Source                        lightdm
Source Path                   lightdm
Port                          <Desconocido>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-259.fc26.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.11.9-300.fc26.x86_64 #1 SMP Wed
                              Jul 5 16:21:56 UTC 2017 x86_64 x86_64
Alert Count                   1
First Seen                    2017-07-12 09:13:59 CEST
Last Seen                     2017-07-12 09:13:59 CEST
Local ID                      15dd87e0-69db-49a3-b980-e0944f1f202e

Raw Audit Messages
type=AVC msg=audit(1499843639.33:216): avc:  denied  { open } for  pid=1662 comm="lightdm" path="/home/malka/.xsession-errors" dev="dm-5" ino=2896933 scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:home_root_t:s0 tclass=file permissive=0


Hash: lightdm,xdm_t,home_root_t,file,open

Version-Release number of selected component:
selinux-policy-3.13.1-259.fc26.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.9.1
hashmarkername: setroubleshoot
kernel:         4.11.9-300.fc26.x86_64
type:           libreport

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