Bug 998203 - SELinux is preventing /usr/bin/xdm from 'create' accesses on the file .Xauthority-n.
Summary: SELinux is preventing /usr/bin/xdm from 'create' accesses on the file .Xautho...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 19
Hardware: i686
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:28cb5b408cc64d81546e289388a...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-08-18 09:01 UTC by ARIKO
Modified: 2013-08-24 22:28 UTC (History)
4 users (show)

Fixed In Version: selinux-policy-3.12.1-73.fc19
Clone Of:
Environment:
Last Closed: 2013-08-24 22:28:30 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description ARIKO 2013-08-18 09:01:16 UTC
Description of problem:
SELinux is preventing /usr/bin/xdm from 'create' accesses on the file .Xauthority-n.

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

If vous pensez que xdm devrait être autorisé à accéder create sur .Xauthority-n file par défaut.
Then vous devriez rapporter ceci en tant qu'anomalie.
Vous pouvez générer un module de stratégie local pour autoriser cet accès.
Do
autoriser cet accès pour le moment en exécutant :
# grep xdm /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:xdm_t:s0-s0:c0.c1023
Target Context                system_u:object_r:user_home_t:s0
Target Objects                .Xauthority-n [ file ]
Source                        xdm
Source Path                   /usr/bin/xdm
Port                          <Inconnu>
Host                          (removed)
Source RPM Packages           xorg-x11-xdm-1.1.11-5.fc19.i686
Target RPM Packages           
Policy RPM                    selinux-policy-3.12.1-59.fc19.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.9.9-301.fc19.i686 #1 SMP Thu Jul
                              4 15:35:21 UTC 2013 i686 i686
Alert Count                   2
First Seen                    2013-07-14 00:16:29 CEST
Last Seen                     2013-07-14 00:16:30 CEST
Local ID                      ae5180f6-8398-44c1-b966-a3a6087580af

Raw Audit Messages
type=AVC msg=audit(1373753790.874:63): avc:  denied  { create } for  pid=367 comm="xdm" name=".Xauthority-n" scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=system_u:object_r:user_home_t:s0 tclass=file


type=SYSCALL msg=audit(1373753790.874:63): arch=i386 syscall=open success=no exit=EACCES a0=bf99b07c a1=c1 a2=180 a3=bf99ac7c items=0 ppid=310 pid=367 auid=1000 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 ses=1 tty=(none) comm=xdm exe=/usr/bin/xdm subj=system_u:system_r:xdm_t:s0-s0:c0.c1023 key=(null)

Hash: xdm,xdm_t,user_home_t,file,create

Additional info:
reporter:       libreport-2.1.6
hashmarkername: setroubleshoot
kernel:         3.10.5-201.fc19.i686
type:           libreport

Comment 1 Miroslav Grepl 2013-08-20 08:44:46 UTC
commit 4500fd79784c06ff17e75efdfdfb079e8ed7de20
Author: Miroslav Grepl <mgrepl>
Date:   Tue Aug 20 10:43:57 2013 +0200

    Add support for .Xauthority-n

Comment 2 Alexey I. Froloff 2013-08-21 12:33:13 UTC
Description of problem:
Logging it to graphucal user session from XDM

Additional info:
reporter:       libreport-2.1.6
hashmarkername: setroubleshoot
kernel:         3.10.5-201.fc19.x86_64
type:           libreport

Comment 3 Fedora Update System 2013-08-23 15:12:30 UTC
selinux-policy-3.12.1-73.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/selinux-policy-3.12.1-73.fc19

Comment 4 Fedora Update System 2013-08-23 23:59:07 UTC
Package selinux-policy-3.12.1-73.fc19:
* should fix your issue,
* was pushed to the Fedora 19 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing selinux-policy-3.12.1-73.fc19'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-15219/selinux-policy-3.12.1-73.fc19
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2013-08-24 22:28:30 UTC
selinux-policy-3.12.1-73.fc19 has been pushed to the Fedora 19 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.