Bug 912389

Summary: SELinux is preventing /usr/lib/systemd/systemd-localed from 'create' accesses on the unix_dgram_socket .
Product: [Fedora] Fedora Reporter: Michal Nowak <mnowak>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 18CC: dominick.grift, dwalsh, metanoite, mgrepl, mitr, shrijit.panicker, spsch1980
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:d4e9a1ac5f2eb3dd0985aae9995dbfdf405f425e272a6cff739c10b17acf5e7d
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-02-20 04:01:48 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Michal Nowak 2013-02-18 15:17:10 UTC
Description of problem:
Ditto #912387?
SELinux is preventing /usr/lib/systemd/systemd-localed from 'create' accesses on the unix_dgram_socket .

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

If you believe that systemd-localed should be allowed create access on the  unix_dgram_socket 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:system_r:systemd_localed_t:s0
Target Objects                 [ unix_dgram_socket ]
Source                        systemd-localed
Source Path                   /usr/lib/systemd/systemd-localed
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           systemd-197-1.fc18.1.x86_64
Target RPM Packages           
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.6-201.fc18.x86_64 #1 SMP Mon
                              Feb 4 15:54:08 UTC 2013 x86_64 x86_64
Alert Count                   1
First Seen                    2013-02-18 16:13:21 CET
Last Seen                     2013-02-18 16:13:21 CET
Local ID                      a72a0ddc-46b1-49d4-bafa-df914101b81f

Raw Audit Messages
type=AVC msg=audit(1361200401.798:163): avc:  denied  { create } for  pid=27813 comm="systemd-localed" scontext=system_u:system_r:systemd_localed_t:s0 tcontext=system_u:system_r:systemd_localed_t:s0 tclass=unix_dgram_socket


type=SYSCALL msg=audit(1361200401.798:163): arch=x86_64 syscall=socket success=no exit=EACCES a0=1 a1=80802 a2=0 a3=7f47543fb960 items=0 ppid=1 pid=27813 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,systemd_localed_t,unix_dgram_socket,create

audit2allow

#============= systemd_localed_t ==============
allow systemd_localed_t self:unix_dgram_socket create;

audit2allow -R

#============= systemd_localed_t ==============
allow systemd_localed_t self:unix_dgram_socket create;


Additional info:
hashmarkername: setroubleshoot
kernel:         3.7.6-201.fc18.x86_64
type:           libreport

Comment 1 Miroslav Grepl 2013-02-19 09:15:01 UTC
Fixed in selinux-policy-3.11.1-79.fc18

Comment 2 Fedora Update System 2013-02-19 09:30:03 UTC
selinux-policy-3.11.1-79.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/selinux-policy-3.11.1-79.fc18

Comment 3 Miloslav Trmač 2013-02-19 12:14:51 UTC
Tried to edit keyboard layout in GNOME control center

Package: (null)
OS Release: Fedora release 18 (Spherical Cow)

Comment 4 Miroslav Grepl 2013-02-19 14:56:40 UTC
*** Bug 912741 has been marked as a duplicate of this bug. ***

Comment 5 Fedora Update System 2013-02-20 04:01:51 UTC
selinux-policy-3.11.1-79.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.