Bug 983835 - 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 NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 19
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:9027dafc891c68173db73b1788f...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-07-12 04:32 UTC by Kjeld Flarup
Modified: 2013-07-12 10:54 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-07-12 10:54:57 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Kjeld Flarup 2013-07-12 04:32:28 UTC
Description of problem:
Started xfce4-panel
SELinux is preventing /usr/sbin/lightdm from 'append' accesses on the file .xsession-errors.

*****  Plugin catchall (100. 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                unconfined_u:object_r:home_root_t:s0
Target Objects                .xsession-errors [ file ]
Source                        lightdm
Source Path                   /usr/sbin/lightdm
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           lightdm-1.6.0-10.fc19.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.12.1-57.fc19.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.9.8-300.fc19.x86_64 #1 SMP Thu
                              Jun 27 19:24:23 UTC 2013 x86_64 x86_64
Alert Count                   4
First Seen                    2013-07-06 04:04:33 VOLT
Last Seen                     2013-07-12 00:36:48 VOLT
Local ID                      25c17d08-d7b8-4f0d-850d-07855b14e45c

Raw Audit Messages
type=AVC msg=audit(1373575008.721:416): avc:  denied  { append } for  pid=1044 comm="lightdm" name=".xsession-errors" dev="sda9" ino=1836445 scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:home_root_t:s0 tclass=file


type=SYSCALL msg=audit(1373575008.721:416): arch=x86_64 syscall=open success=no exit=EACCES a0=16889e0 a1=441 a2=180 a3=7fff04c14a30 items=0 ppid=955 pid=1044 auid=519 uid=519 gid=521 euid=519 suid=519 fsuid=519 egid=521 sgid=521 fsgid=521 ses=1 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,home_root_t,file,append

Additional info:
reporter:       libreport-2.1.5
hashmarkername: setroubleshoot
kernel:         3.9.8-300.fc19.x86_64
type:           libreport

Comment 1 Miroslav Grepl 2013-07-12 10:54:57 UTC
You will need to fix labeling in your HOME directory.

# restorecon -R -v /home


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