polkit: consolidated polkit action IDs to match DBus names
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
This commit is contained in:
parent
ec462180af
commit
e86e1be083
4 changed files with 4 additions and 11 deletions
4
Makefile
4
Makefile
|
|
@ -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)
|
||||
|
|
@ -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)), \
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
@ -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">
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue