summaryrefslogtreecommitdiff
path: root/introspection
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2010-05-29 23:11:45 -0700
committerDan Williams <dcbw@redhat.com>2010-05-29 23:11:45 -0700
commit65818d517e386c03daca08db4be7b53aff94359a (patch)
tree83ab988f3c56d1e33e4dd6afa11b38d2a5e65bc7 /introspection
parent1e69294204e201ac284e9547d8f41e4a41fbd494 (diff)
core: PolicyKit-protect sleep/wake
Default to 'not allowed', distros that need backwards compatibility can flip this to 'yes' if they need to. At this point, only power management scripts should call these functions.
Diffstat (limited to 'introspection')
-rw-r--r--introspection/nm-manager.xml3
1 files changed, 3 insertions, 0 deletions
diff --git a/introspection/nm-manager.xml b/introspection/nm-manager.xml
index 370d98a59e..88686566d0 100644
--- a/introspection/nm-manager.xml
+++ b/introspection/nm-manager.xml
@@ -86,6 +86,7 @@
<method name="Sleep">
<annotation name="org.freedesktop.DBus.GLib.CSymbol" value="impl_manager_sleep"/>
+ <annotation name="org.freedesktop.DBus.GLib.Async" value=""/>
<tp:docstring>
Control the NetworkManager daemon's sleep state. When asleep, all
interfaces that it manages are deactivated. When awake, devices are
@@ -303,6 +304,7 @@
DEPRECATED. Control the NetworkManager daemon's sleep state. When asleep, all interfaces that it manages are deactivated.
</tp:docstring>
<annotation name="org.freedesktop.DBus.GLib.CSymbol" value="impl_manager_legacy_sleep"/>
+ <annotation name="org.freedesktop.DBus.GLib.Async" value=""/>
</method>
<method name="wake">
@@ -310,6 +312,7 @@
DEPRECATED. Control the NetworkManager daemon's sleep state. When awake, all known interfaces are available to be activated.
</tp:docstring>
<annotation name="org.freedesktop.DBus.GLib.CSymbol" value="impl_manager_legacy_wake"/>
+ <annotation name="org.freedesktop.DBus.GLib.Async" value=""/>
</method>
<method name="state">