Skip to content

Commit

Permalink
polkit: consolidated polkit action IDs to match DBus names
Browse files Browse the repository at this point in the history
Signed-off-by: Jaroslav Škarvada <[email protected]>
  • Loading branch information
yarda committed Jun 8, 2016
1 parent ec46218 commit e86e1be
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 11 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ release-cp: release-dir

cp -a tuned.py tuned.spec tuned.service tuned.tmpfiles Makefile tuned-adm.py \
tuned-adm.bash dbus.conf recommend.conf tuned-main.conf 00_tuned \
bootcmdline org.tuned.gui.policy tuned-gui.py tuned-gui.glade \
bootcmdline com.redhat.tuned.gui.policy tuned-gui.py tuned-gui.glade \
tuned-gui.desktop $(VERSIONED_NAME)
cp -a doc experiments libexec man profiles systemtap tuned contrib icons \
$(VERSIONED_NAME)
Expand Down Expand Up @@ -144,7 +144,7 @@ install: install-dirs
install -Dpm 0755 00_tuned $(DESTDIR)/etc/grub.d/00_tuned

# polkit configuration
install -Dpm 0644 org.tuned.gui.policy $(DESTDIR)$(DATADIR)/polkit-1/actions/org.tuned.gui.policy
install -Dpm 0644 com.redhat.tuned.gui.policy $(DESTDIR)$(DATADIR)/polkit-1/actions/com.redhat.tuned.gui.policy

# manual pages
$(foreach man_section, 5 7 8, $(foreach file, $(wildcard man/*.$(man_section)), \
Expand Down
2 changes: 1 addition & 1 deletion org.tuned.gui.policy → com.redhat.tuned.gui.policy
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<!DOCTYPE policyconfig PUBLIC "-//freedesktop//DTD polkit Policy Configuration 1.0//EN"
"http://www.freedesktop.org/software/polkit/policyconfig-1.dtd">
<policyconfig>
<action id="org.tuned.gui.run">
<action id="com.redhat.tuned.gui.run">
<description>Run tuned-gui as root</description>
<message>Authentication is required to run tuned-gui</message>
<defaults>
Expand Down
7 changes: 0 additions & 7 deletions dbus.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,12 @@
<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
"http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">

<!--
This file is part of tuned daemon.
-->

<busconfig>
<policy context="default">
<deny send_destination="com.redhat.tuned" />
<allow receive_sender="com.redhat.tuned" />

<allow send_destination="com.redhat.tuned" send_interface="org.freedesktop.DBus.Introspectable" />

<allow send_destination="com.redhat.tuned" send_interface="com.redhat.tuned.control" send_member="active_profile" />
<allow send_destination="com.redhat.tuned" send_interface="com.redhat.tuned.control" send_member="status" />
</policy>

<policy user="root">
Expand Down
2 changes: 1 addition & 1 deletion tuned.spec
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ fi
%{_sbindir}/tuned-gui
%{python_sitelib}/tuned/gtk
%{_datadir}/tuned/ui
%{_datadir}/polkit-1/actions/org.tuned.gui.policy
%{_datadir}/polkit-1/actions/com.redhat.tuned.gui.policy
%{_datadir}/icons/hicolor/scalable/apps/tuned.svg
%{_datadir}/applications/tuned-gui.desktop

Expand Down

0 comments on commit e86e1be

Please sign in to comment.