Bug 912157 - SELinux is preventing /usr/lib/systemd/systemd-localed from 'read' accesses on the file /etc/X11/xorg.conf.d/00-keyboard.conf.
Summary: SELinux is preventing /usr/lib/systemd/systemd-localed from 'read' accesses o...
Keywords:
Status: CLOSED DUPLICATE of bug 912100
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 18
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:0d48ed1374673507af0d7c34fa3...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-02-17 23:43 UTC by hywel
Modified: 2013-02-18 10:47 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-02-18 10:47:01 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description hywel 2013-02-17 23:43:41 UTC
Description of problem:
SELinux is preventing /usr/lib/systemd/systemd-localed from 'read' accesses on the file /etc/X11/xorg.conf.d/00-keyboard.conf.

*****  Plugin restorecon (99.5 confidence) suggests  *************************

If you want to fix the label. 
/etc/X11/xorg.conf.d/00-keyboard.conf default label should be locale_t.
Then you can run restorecon.
Do
# /sbin/restorecon -v /etc/X11/xorg.conf.d/00-keyboard.conf

*****  Plugin catchall (1.49 confidence) suggests  ***************************

If you believe that systemd-localed should be allowed read access on the 00-keyboard.conf 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 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:etc_runtime_t:s0
Target Objects                /etc/X11/xorg.conf.d/00-keyboard.conf [ file ]
Source                        systemd-localed
Source Path                   /usr/lib/systemd/systemd-localed
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           systemd-197-1.fc18.2.x86_64
Target RPM Packages           systemd-197-1.fc18.2.x86_64
Policy RPM                    selinux-policy-3.11.1-78.fc18.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.7.8-202.fc18.x86_64 #1 SMP Fri
                              Feb 15 17:33:07 UTC 2013 x86_64 x86_64
Alert Count                   2
First Seen                    2013-02-17 11:13:35 EST
Last Seen                     2013-02-17 11:13:35 EST
Local ID                      ea09bdd2-f6ff-4f85-8c17-fa0ac85e9020

Raw Audit Messages
type=AVC msg=audit(1361117615.422:370): avc:  denied  { read } for  pid=3610 comm="systemd-localed" name="00-keyboard.conf" dev="dm-1" ino=134522 scontext=system_u:system_r:systemd_localed_t:s0 tcontext=system_u:object_r:etc_runtime_t:s0 tclass=file


type=SYSCALL msg=audit(1361117615.422:370): arch=x86_64 syscall=open success=no exit=EACCES a0=7f7b61007220 a1=80000 a2=1b6 a3=238 items=0 ppid=1 pid=3610 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,etc_runtime_t,file,read

audit2allow

#============= systemd_localed_t ==============
allow systemd_localed_t etc_runtime_t:file read;

audit2allow -R

#============= systemd_localed_t ==============
allow systemd_localed_t etc_runtime_t:file read;


Additional info:
hashmarkername: setroubleshoot
kernel:         3.7.8-202.fc18.x86_64
type:           libreport

Comment 1 Miroslav Grepl 2013-02-18 10:47:01 UTC

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


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