Bug 983835 - SELinux is preventing /usr/sbin/lightdm from 'append' accesses on the file .xsession-errors.
SELinux is preventing /usr/sbin/lightdm from 'append' accesses on the file .x...
Product: Fedora
Classification: Fedora
Component: selinux-policy (Show other bugs)
x86_64 Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Miroslav Grepl
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2013-07-12 00:32 EDT by Kjeld Flarup
Modified: 2013-07-12 06:54 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2013-07-12 06:54:57 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Kjeld Flarup 2013-07-12 00:32:28 EDT
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.
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 06:54:57 EDT
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.