summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2008-12-09 11:13:07 +0000
committerRichard Hughes <richard@hughsie.com>2008-12-09 11:13:07 +0000
commit09be8aeefb656ce95b44724e2389be21501272bb (patch)
tree576726f0ef4f85d9102a3256eeb86520e438e9a1 /src
parent43f1ae266895561114c7f68c87f47f9474643ba8 (diff)
trivial: mae the PolicyKit file validate
Diffstat (limited to 'src')
-rw-r--r--src/dkp-qos.c6
-rw-r--r--src/org.freedesktop.DeviceKit.Power.QoS.xml8
2 files changed, 7 insertions, 7 deletions
diff --git a/src/dkp-qos.c b/src/dkp-qos.c
index 6ed3f96..27abc2d 100644
--- a/src/dkp-qos.c
+++ b/src/dkp-qos.c
@@ -324,9 +324,9 @@ dkp_qos_request_latency (DkpQos *qos, const gchar *type_text, gint value, gboole
/* check auth */
if (persistent)
- auth = "org.freedesktop.devicekit.power.latency.request-latency-persistent";
+ auth = "org.freedesktop.devicekit.power.qos.request-latency-persistent";
else
- auth = "org.freedesktop.devicekit.power.latency.request-latency";
+ auth = "org.freedesktop.devicekit.power.qos.request-latency";
if (!dkp_polkit_check_auth (qos->priv->polkit, caller, auth, context))
goto out;
@@ -427,7 +427,7 @@ dkp_qos_cancel_request (DkpQos *qos, guint cookie, DBusGMethodInvocation *contex
caller = dkp_polkit_get_caller (qos->priv->polkit, context);
if (caller == NULL)
goto out;
- if (!dkp_polkit_check_auth (qos->priv->polkit, caller, "org.freedesktop.devicekit.power.latency.cancel-request", context))
+ if (!dkp_polkit_check_auth (qos->priv->polkit, caller, "org.freedesktop.devicekit.power.qos.cancel-request", context))
goto out;
}
diff --git a/src/org.freedesktop.DeviceKit.Power.QoS.xml b/src/org.freedesktop.DeviceKit.Power.QoS.xml
index 2009d92..716eb06 100644
--- a/src/org.freedesktop.DeviceKit.Power.QoS.xml
+++ b/src/org.freedesktop.DeviceKit.Power.QoS.xml
@@ -97,7 +97,7 @@
You do not have to use this method during normal operation.
</doc:para>
</doc:description>
- <doc:permission>Callers need the <doc:tt>org.freedesktop.devicekit.power.latency.set-minimum-latency</doc:tt> authorization</doc:permission>
+ <doc:permission>Callers need the <doc:tt>org.freedesktop.devicekit.power.qos.set-minimum-latency</doc:tt> authorization</doc:permission>
<doc:errors>
<doc:error name="&ERROR_GENERAL;">if an error occured while setting the latency</doc:error>
</doc:errors>
@@ -151,9 +151,9 @@
</doc:description>
<doc:permission>
Callers need the
- <doc:tt>org.freedesktop.devicekit.power.latency.request-latency-persistent</doc:tt>
+ <doc:tt>org.freedesktop.devicekit.power.qos.request-latency-persistent</doc:tt>
authorization if <doc:tt>persistent</doc:tt> is TRUE, or
- <doc:tt>org.freedesktop.devicekit.power.latency.request-latency</doc:tt> otherwise.
+ <doc:tt>org.freedesktop.devicekit.power.qos.request-latency</doc:tt> otherwise.
</doc:permission>
<doc:errors>
<doc:error name="&ERROR_GENERAL;">if an error occured while setting the latency</doc:error>
@@ -188,7 +188,7 @@
</doc:description>
<doc:permission>
Callers need the
- <doc:tt>org.freedesktop.devicekit.power.latency.cancel-request</doc:tt>
+ <doc:tt>org.freedesktop.devicekit.power.qos.cancel-request</doc:tt>
authorization if they were not the one issuing the request.
</doc:permission>
<doc:errors>