Bug 924776 - SELinux is preventing /usr/lib/systemd/systemd-localed from 'unlink' accesses on the file 00-keyboard.conf.
Summary: SELinux is preventing /usr/lib/systemd/systemd-localed from 'unlink' accesses...
Keywords:
Status: CLOSED ERRATA
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:1a37ae5d228a67e0371bd1b1c3c...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-03-22 13:39 UTC by Martin Kyral
Modified: 2013-04-19 05:53 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-04-19 05:53:40 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Martin Kyral 2013-03-22 13:39:28 UTC
Description of problem:
SELinux AVC denial was fired when configuring "Input Sources" (adding keyboard layout) for "Login Screen" in the "Region&Language" module of the GNOME Settings
SELinux is preventing /usr/lib/systemd/systemd-localed from 'unlink' accesses on the file 00-keyboard.conf.

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

If you believe that systemd-localed should be allowed unlink 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:xserver_etc_t:s0
Target Objects                00-keyboard.conf [ file ]
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.rc3.git0.4.fc19.x86_64 #1
                              SMP Tue Mar 19 23:11:33 UTC 2013 x86_64 x86_64
Alert Count                   1
First Seen                    2013-03-22 09:35:27 EDT
Last Seen                     2013-03-22 09:35:27 EDT
Local ID                      11d31971-c497-4c7c-b409-d48e243a36c4

Raw Audit Messages
type=AVC msg=audit(1363959327.162:121): avc:  denied  { unlink } for  pid=1189 comm="systemd-localed" name="00-keyboard.conf" dev="dm-0" ino=163367 scontext=system_u:system_r:systemd_localed_t:s0 tcontext=system_u:object_r:xserver_etc_t:s0 tclass=file


type=SYSCALL msg=audit(1363959327.162:121): arch=x86_64 syscall=rename success=yes exit=0 a0=7f674eed0ac0 a1=7f674e1ab6c8 a2=7f674eee9430 a3=7 items=0 ppid=1 pid=1189 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,file,unlink

audit2allow

#============= systemd_localed_t ==============
allow systemd_localed_t xserver_etc_t:file unlink;

audit2allow -R
require {
	type systemd_localed_t;
	type xserver_etc_t;
	class file unlink;
}

#============= systemd_localed_t ==============
allow systemd_localed_t xserver_etc_t:file unlink;


Additional info:
hashmarkername: setroubleshoot
kernel:         3.9.0-0.rc3.git0.4.fc19.x86_64
type:           libreport

Comment 1 Daniel Walsh 2013-03-25 13:57:47 UTC
72234013d50058631e22848d138c571c1213cf07 fixes this in Rawhide.

Comment 2 Miroslav Grepl 2013-03-26 12:03:43 UTC
Has been added.

Comment 3 Fedora Update System 2013-04-08 11:42:35 UTC
selinux-policy-3.12.1-28.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/FEDORA-2013-5045/selinux-policy-3.12.1-28.fc19

Comment 4 Fedora Update System 2013-04-08 15:51:43 UTC
Package selinux-policy-3.12.1-28.fc19:
* should fix your issue,
* was pushed to the Fedora 19 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-28.fc19'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-5045/selinux-policy-3.12.1-28.fc19
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2013-04-19 05:53:42 UTC
selinux-policy-3.12.1-28.fc19 has been pushed to the Fedora 19 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.