Bug 916177 - localectl doesn't work when selinux is enabled
Summary: localectl doesn't work when selinux is enabled
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 18
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-02-27 13:22 UTC by Enrico Bianchi
Modified: 2013-03-03 22:43 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-03-03 22:43:33 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Enrico Bianchi 2013-02-27 13:22:40 UTC
If SELinux is in enforcing mode, localectl present this error:

[root@localhost ~]# localectl status
Failed to issue method call: Did not receive a reply. Possible causes include: the remote application  reply, the reply timeout expired, or the network connection was broken.
[root@localhost ~]#

If SELinux is disable, localectl works correctly:

[root@localhost ~]# setenforce 0
[root@localhost ~]# localectl status
   System Locale: LANG=en_US.UTF-8
       VC Keymap: it
      X11 Layout: n/a
[root@localhost ~]#

Message in audit.log is:

type=USER_AVC msg=audit(1361970267.686:352): pid=556 uid=81 auid=4294967295 ses=4294967295 subj=system_u:system_r:system_dbusd_t:s0-s0:c0.c1023 msg='avc:  denied  { send_msg } for msgtype=method_return dest=:1.27 spid=1018 tpid=1242 scontext=system_u:system_r:systemd_localed_t:s0 tcontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tclass=dbus  exe="/usr/bin/dbus-daemon" sauid=81 hostname=? addr=? terminal=?'

Comment 1 Daniel Walsh 2013-02-27 14:36:12 UTC
b4eb9f1a942ee8edc3da8eaef941d0a5e5719442 fixes this in Rawhide.

Comment 2 Miroslav Grepl 2013-02-28 13:46:00 UTC
commit 2e385935b97f4678bd9a9ef2cb3f8e3d115c8308
Author: Dan Walsh <dwalsh>
Date:   Wed Feb 27 09:35:09 2013 -0500

    Localectl needs to be able to send dbus signals to users

Comment 3 Fedora Update System 2013-03-01 13:06:46 UTC
selinux-policy-3.11.1-82.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/selinux-policy-3.11.1-82.fc18

Comment 4 Fedora Update System 2013-03-02 20:16:26 UTC
Package selinux-policy-3.11.1-82.fc18:
* should fix your issue,
* was pushed to the Fedora 18 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.11.1-82.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-3309/selinux-policy-3.11.1-82.fc18
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2013-03-03 22:43:34 UTC
selinux-policy-3.11.1-82.fc18 has been pushed to the Fedora 18 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.