fwupd/policy/org.freedesktop.fwupd.policy.in
Richard Hughes a6bd5580d3 Add ModifyRemote as an easy way to enable and disable remotes like the LVFS
For example:

    $ fwupdmgr modify-remote lvfs-testing Enabled true
2017-09-07 23:02:58 +01:00

116 lines
4.4 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE policyconfig PUBLIC
"-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
"http://www.freedesktop.org/standards/PolicyKit/1.0/policyconfig.dtd">
<policyconfig>
<!--
Policy definitions for fwupd actions.
Copyright (c) 2015 Richard Hughes <richard@hughsie.com>
-->
<vendor>System firmware update</vendor>
<vendor_url>https://github.com/hughsie/fwupd</vendor_url>
<icon_name>application-x-firmware</icon_name>
<action id="org.freedesktop.fwupd.update-internal-trusted">
<description>Install signed system firmware</description>
<!-- TRANSLATORS: this is the PolicyKit modal dialog -->
<message>Authentication is required to update the firmware on this machine</message>
<defaults>
<allow_any>auth_admin</allow_any>
<allow_inactive>no</allow_inactive>
<allow_active>yes</allow_active>
</defaults>
</action>
<action id="org.freedesktop.fwupd.update-internal">
<description>Install unsigned system firmware</description>
<!-- TRANSLATORS: this is the PolicyKit modal dialog -->
<message>Authentication is required to update the firmware on this machine</message>
<defaults>
<allow_any>auth_admin</allow_any>
<allow_inactive>no</allow_inactive>
<allow_active>auth_admin_keep</allow_active>
</defaults>
</action>
<action id="org.freedesktop.fwupd.downgrade-internal">
<description>Install old version of system firmware</description>
<!-- TRANSLATORS: this is the PolicyKit modal dialog -->
<message>Authentication is required to downgrade the firmware on this machine</message>
<defaults>
<allow_any>auth_admin</allow_any>
<allow_inactive>no</allow_inactive>
<allow_active>auth_admin_keep</allow_active>
</defaults>
</action>
<action id="org.freedesktop.fwupd.update-hotplug-trusted">
<description>Install signed device firmware</description>
<!-- TRANSLATORS: this is the PolicyKit modal dialog -->
<message>Authentication is required to update the firmware on a removable device</message>
<defaults>
<allow_any>auth_admin</allow_any>
<allow_inactive>no</allow_inactive>
<allow_active>yes</allow_active>
</defaults>
</action>
<action id="org.freedesktop.fwupd.update-hotplug">
<description>Install unsigned device firmware</description>
<!-- TRANSLATORS: this is the PolicyKit modal dialog -->
<message>Authentication is required to update the firmware on a removable device</message>
<defaults>
<allow_any>auth_admin</allow_any>
<allow_inactive>no</allow_inactive>
<allow_active>auth_admin_keep</allow_active>
</defaults>
</action>
<action id="org.freedesktop.fwupd.downgrade-hotplug">
<description>Install unsigned device firmware</description>
<!-- TRANSLATORS: this is the PolicyKit modal dialog -->
<message>Authentication is required to downgrade the firmware on a removable device</message>
<defaults>
<allow_any>auth_admin</allow_any>
<allow_inactive>no</allow_inactive>
<allow_active>auth_admin_keep</allow_active>
</defaults>
</action>
<action id="org.freedesktop.fwupd.device-unlock">
<description>Unlock the device to allow access</description>
<!-- TRANSLATORS: this is the PolicyKit modal dialog -->
<message>Authentication is required to unlock a device</message>
<defaults>
<allow_any>auth_admin</allow_any>
<allow_inactive>no</allow_inactive>
<allow_active>auth_admin_keep</allow_active>
</defaults>
</action>
<action id="org.freedesktop.fwupd.verify-update">
<description>Update the stored device verification information</description>
<!-- TRANSLATORS: this is the PolicyKit modal dialog -->
<message>Authentication is required to update the stored checksums for the device</message>
<defaults>
<allow_any>auth_admin</allow_any>
<allow_inactive>no</allow_inactive>
<allow_active>auth_admin_keep</allow_active>
</defaults>
</action>
<action id="org.freedesktop.fwupd.modify-remote">
<description>Modify a configured remote</description>
<!-- TRANSLATORS: this is the PolicyKit modal dialog -->
<message>Authentication is required to modify a configured remote used for firmware updates</message>
<defaults>
<allow_any>auth_admin</allow_any>
<allow_inactive>no</allow_inactive>
<allow_active>auth_admin_keep</allow_active>
</defaults>
</action>
</policyconfig>