Bug 928336 - SELinux is preventing /usr/lib/systemd/systemd-localed from 'write' accesses on the directory xorg.conf.d.
Summary: SELinux is preventing /usr/lib/systemd/systemd-localed from 'write' accesses ...
Keywords:
Status: CLOSED DUPLICATE of bug 928331
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:bc07f6343f8ddeafec325eb1975...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-03-27 13:11 UTC by Kamil Páral
Modified: 2013-03-27 13:59 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-03-27 13:59:08 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Kamil Páral 2013-03-27 13:11:48 UTC
Description of problem:
I finished installing system from the LiveCD and this popped up.
SELinux is preventing /usr/lib/systemd/systemd-localed from 'write' accesses on the directory xorg.conf.d.

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

If you believe that systemd-localed should be allowed write access on the xorg.conf.d directory 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 systemd-localed /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:systemd_localed_t:s0
Target Context                system_u:object_r:xserver_etc_t:s0
Target Objects                xorg.conf.d [ dir ]
Source                        systemd-localed
Source Path                   /usr/lib/systemd/systemd-localed
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           systemd-198-7.fc19.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.12.1-23.fc19.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 3.9.0-0.rc4.git0.1.fc19.x86_64 #1
                              SMP Mon Mar 25 02:31:02 UTC 2013 x86_64 x86_64
Alert Count                   1
First Seen                    2013-03-27 08:55:48 EDT
Last Seen                     2013-03-27 08:55:48 EDT
Local ID                      51e4465a-4fb9-408e-a01e-00e4ff8bfead

Raw Audit Messages
type=AVC msg=audit(1364388948.383:469): avc:  denied  { write } for  pid=18757 comm="systemd-localed" name="xorg.conf.d" dev="dm-0" ino=152209 scontext=system_u:system_r:systemd_localed_t:s0 tcontext=system_u:object_r:xserver_etc_t:s0 tclass=dir


type=AVC msg=audit(1364388948.383:469): avc:  denied  { add_name } for  pid=18757 comm="systemd-localed" name=".00-keyboard.confj1CWKN" scontext=system_u:system_r:systemd_localed_t:s0 tcontext=system_u:object_r:xserver_etc_t:s0 tclass=dir


type=AVC msg=audit(1364388948.383:469): avc:  denied  { create } for  pid=18757 comm="systemd-localed" name=".00-keyboard.confj1CWKN" scontext=system_u:system_r:systemd_localed_t:s0 tcontext=system_u:object_r:xserver_etc_t:s0 tclass=file


type=AVC msg=audit(1364388948.383:469): avc:  denied  { write } for  pid=18757 comm="systemd-localed" path="/etc/X11/xorg.conf.d/.00-keyboard.confj1CWKN" dev="dm-0" ino=181968 scontext=system_u:system_r:systemd_localed_t:s0 tcontext=system_u:object_r:xserver_etc_t:s0 tclass=file


type=SYSCALL msg=audit(1364388948.383:469): arch=x86_64 syscall=open success=yes exit=EIO a0=7f79abdeb2e0 a1=800c2 a2=180 a3=0 items=0 ppid=1 pid=18757 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 ses=4294967295 tty=(none) comm=systemd-localed exe=/usr/lib/systemd/systemd-localed subj=system_u:system_r:systemd_localed_t:s0 key=(null)

Hash: systemd-localed,systemd_localed_t,xserver_etc_t,dir,write

audit2allow

#============= systemd_localed_t ==============
allow systemd_localed_t xserver_etc_t:dir { write add_name };
allow systemd_localed_t xserver_etc_t:file { write create };

audit2allow -R

Additional info:
hashmarkername: setroubleshoot
kernel:         3.9.0-0.rc4.git0.1.fc19.x86_64
type:           libreport

Comment 1 Miroslav Grepl 2013-03-27 13:59:08 UTC

*** This bug has been marked as a duplicate of bug 928331 ***


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