Bug 1084698 - SELinux is preventing /usr/sbin/lightdm from 'append' accesses on the file .xsession-errors.
Summary: SELinux is preventing /usr/sbin/lightdm from 'append' accesses on the file .x...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 20
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:41c8f297adb6cab6162ae541b3c...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-04-05 17:29 UTC by Brian J. Murrell
Modified: 2014-04-20 01:25 UTC (History)
4 users (show)

Fixed In Version: selinux-policy-3.12.1-153.fc20
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-04-20 01:25:30 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Brian J. Murrell 2014-04-05 17:29:24 UTC
Description of problem:
SELinux is preventing /usr/sbin/lightdm from 'append' accesses on the file .xsession-errors.

*****  Plugin catchall_boolean (89.3 confidence) suggests   ******************

If you want to support NFS home directories
Then you must tell SELinux about this by enabling the 'use_nfs_home_dirs' boolean.
You can read 'None' man page for more details.
Do
setsebool -P use_nfs_home_dirs 1

*****  Plugin catchall (11.6 confidence) suggests   **************************

If you believe that lightdm should be allowed append access on the .xsession-errors 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 lightdm /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:nfs_t:s0
Target Objects                .xsession-errors [ file ]
Source                        lightdm
Source Path                   /usr/sbin/lightdm
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           lightdm-1.6.3-2.fc19.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.12.1-74.10.fc19.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.11.6-200.fc19.x86_64 #1 SMP Fri
                              Oct 18 22:34:18 UTC 2013 x86_64 x86_64
Alert Count                   1
First Seen                    2013-11-04 08:24:01 EST
Last Seen                     2013-11-04 08:24:01 EST
Local ID                      be8adc5d-d739-4f43-8fef-bf8bf287523c

Raw Audit Messages
type=AVC msg=audit(1383571441.773:818): avc:  denied  { append } for  pid=17380 comm="lightdm" name=".xsession-errors" dev="0:61" ino=272987 scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=system_u:object_r:nfs_t:s0 tclass=file


type=SYSCALL msg=audit(1383571441.773:818): arch=x86_64 syscall=open success=no exit=EACCES a0=db5bd0 a1=441 a2=180 a3=38f301b2e0 items=0 ppid=17298 pid=17380 auid=1012 uid=1012 gid=1012 euid=1012 suid=1012 fsuid=1012 egid=1012 sgid=1012 fsgid=1012 ses=70 tty=(none) comm=lightdm exe=/usr/sbin/lightdm subj=system_u:system_r:xdm_t:s0-s0:c0.c1023 key=(null)

Hash: lightdm,xdm_t,nfs_t,file,append

Additional info:
reporter:       libreport-2.2.0
hashmarkername: setroubleshoot
kernel:         3.13.7-200.fc20.x86_64
type:           libreport

Comment 1 Miroslav Grepl 2014-04-07 07:29:58 UTC
commit f23973beebc4b5ace4db637131a39ef82aab9781
Author: Miroslav Grepl <mgrepl>
Date:   Mon Apr 7 09:29:27 2014 +0200

    Fix use_nfs_home_dirs/use_samba_home_dirs for xdm_t to allow append .xsession-errors by lightdm

Comment 2 Fedora Update System 2014-04-08 04:49:19 UTC
selinux-policy-3.12.1-152.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/selinux-policy-3.12.1-152.fc20

Comment 3 Fedora Update System 2014-04-09 13:17:21 UTC
Package selinux-policy-3.12.1-152.fc20:
* should fix your issue,
* was pushed to the Fedora 20 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-152.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-4933/selinux-policy-3.12.1-152.fc20
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2014-04-14 22:42:45 UTC
Package selinux-policy-3.12.1-153.fc20:
* should fix your issue,
* was pushed to the Fedora 20 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-153.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-4933/selinux-policy-3.12.1-153.fc20
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2014-04-20 01:25:30 UTC
selinux-policy-3.12.1-153.fc20 has been pushed to the Fedora 20 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.