Bug 882922
Summary: | SELinux policy prevents tuned daemon from communicating over DBus | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Jan Vcelak <jvcelak> |
Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 17 | CC: | dominick.grift, dwalsh, ezwen-redhatbugzilla, mgrepl, tsmetana |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | 874059 | Environment: | |
Last Closed: | 2013-01-07 04:02:55 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | 874059 | ||
Bug Blocks: |
Description
Jan Vcelak
2012-12-03 10:57:59 UTC
Jan, are you testing it with -59.fc18 build? # matchpathcon /etc/tuned/active_profile /etc/tuned/active_profile system_u:object_r:tuned_rw_etc_t:s0 Sorry for not mentioning that. Yes, I do: # rpm -q selinux-policy selinux-policy-3.11.1-59.fc18.noarch Ok, so tuned-adm wants to talk with the daemon. How is tuned powerful? Does it create tuned files/dirs? tuned is very powerful. :-) It actually needs to write into /etc/tuned/active_profile, /var/run/tuned, /var/log/tuned, various locations in /sys, /dev/*_latency ... that's all I can recall now. Ok, basically I am interested in type=AVC msg=audit(1354530611.557:124): avc: denied { write } for pid=3237 comm="tuned" name="active_profile" dev="dm-1" ino=1706757 scontext=system_u:system_r:tuned_t:s0 tcontext=system_u:object_r:etc_t:s0 tclass=file Added commit 84dd32002a178f115010ada522ffc9d892609f0c Author: Miroslav Grepl <mgrepl> Date: Tue Dec 4 14:27:20 2012 +0100 tuned-adm wants to talk with tuned daemon I appear to have a similar issue. (as root) # systemctl start tuned # tuned-adm active 2012-12-05 12:08:40,908 ERROR dbus.proxies: Introspect error on :1.143:/Tuned: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken. ERROR:dbus.proxies:Introspect error on :1.143:/Tuned: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken. DBus call to Tuned daemon failed (org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.). And this appears in audit.log: ---------------------------- type=SERVICE_START msg=audit(1354704300.082:340): pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg=' comm="tuned" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success' type=USER_AVC msg=audit(1354704331.598:341): pid=1053 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.126 spid=8662 tpid=8682 scontext=system_u:system_r:tuned_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=?' type=USER_AVC msg=audit(1354704356.623:342): pid=1053 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.126 spid=8662 tpid=8682 scontext=system_u:system_r:tuned_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=?' ---------------------------- And it works when I disable SELinux. (as root) # setenforce 0 # tuned-adm active Current active profile: balanced After a "yum update", tuned got updated to 2.1.1 and the problem seems to be solved. # setenforce 1 # tuned-adm active Current active profile: balanced selinux-policy-3.10.0-165.fc17 has been submitted as an update for Fedora 17. https://admin.fedoraproject.org/updates/selinux-policy-3.10.0-165.fc17 Package selinux-policy-3.10.0-165.fc17: * should fix your issue, * was pushed to the Fedora 17 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.10.0-165.fc17' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2012-20544/selinux-policy-3.10.0-165.fc17 then log in and leave karma (feedback). Package selinux-policy-3.10.0-166.fc17: * should fix your issue, * was pushed to the Fedora 17 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.10.0-166.fc17' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2012-20544/selinux-policy-3.10.0-166.fc17 then log in and leave karma (feedback). selinux-policy-3.10.0-166.fc17 has been pushed to the Fedora 17 stable repository. If problems still persist, please make note of it in this bug report. |