mirror of
https://gitlab.freedesktop.org/upower/power-profiles-daemon.git
synced 2026-05-09 02:28:17 +02:00
Expose the daemon as 'org.freedesktop.UPower.PowerProfiles' by default but we also own the old 'net.hadess.PowerProfiles' name for compatibility resons. Also dbus objects are now registered also in the path /org/freedesktop/UPower/PowerProfiles and they implement the org.freedesktop.UPower.PowerProfiles interface. Even in this case we preserve the compatibility with the old ones. To make this switch as most reliable as possible, the code is now generated for dbus configuration files preserving the previous ones as base. Tests are now performed checking both names, to ensure again that we're not breaking the expectations for the old APIs consumers.
21 lines
783 B
XML
21 lines
783 B
XML
<?xml version="1.0" encoding="UTF-8"?> <!-- -*- XML -*- -->
|
|
|
|
<!DOCTYPE busconfig PUBLIC
|
|
"-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
|
|
"http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
|
|
<busconfig>
|
|
|
|
<!-- Only root can own the service -->
|
|
<policy user="root">
|
|
<allow own="@dbus_name@"/>
|
|
</policy>
|
|
|
|
<!-- Anyone can talk to the main interface -->
|
|
<policy context="default">
|
|
<allow send_destination="@dbus_name@" send_interface="@dbus_iface@"/>
|
|
<allow send_destination="@dbus_name@" send_interface="org.freedesktop.DBus.Introspectable"/>
|
|
<allow send_destination="@dbus_name@" send_interface="org.freedesktop.DBus.Properties"/>
|
|
<allow send_destination="@dbus_name@" send_interface="org.freedesktop.DBus.Peer"/>
|
|
</policy>
|
|
|
|
</busconfig>
|