gnome-control-center/panels/system/remote-desktop/org.gnome.controlcenter.remote-session-helper.policy.in.in
Ray Strode cf39376cca system, remote-desktop: Add new polkit policy
Remote session support needs to be able to start systemd units
and also manage gnome-remote-desktop.

This commit adds a polkit policy to accomodate both subactions
with one overarching action that only needs to be unlocked one time.
2024-03-02 10:54:18 -05:00

22 lines
896 B
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>
<vendor>The GNOME Project</vendor>
<vendor_url>http://www.gnome.org/</vendor_url>
<action id="org.gnome.controlcenter.remote-session-helper">
<description>Enable or disable remote sessions</description>
<message>Authentication is required to enable or disable remote sessions</message>
<defaults>
<allow_any>no</allow_any>
<allow_inactive>no</allow_inactive>
<allow_active>auth_admin_keep</allow_active>
</defaults>
<annotate key="org.freedesktop.policykit.imply">org.freedesktop.systemd1.manage-units org.freedesktop.systemd1.manage-unit-files org.gnome.remotedesktop.configure-system-daemon</annotate>
</action>
</policyconfig>