mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-20 07:28:08 +03:00
50f73a57b7
This is a polkit policy that is read when fs-admin invokes `dd` via `pkexec` after trying to write into a restricted location. By specifying `auth_admin_keep`, we are telling the polkit daemon to not prompt users for a password again if they have already escalated privileges recently. Co-Authored-By: Rafael Oleza <rafeca@github.com>
19 lines
804 B
XML
19 lines
804 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>Atom</vendor>
|
|
<action id="atom.pkexec.dd">
|
|
<description gettext-domain="atom">Admin privileges required</description>
|
|
<message gettext-domain="atom">Please enter your password to save this file</message>
|
|
<annotate key="org.freedesktop.policykit.exec.path">/bin/dd</annotate>
|
|
<annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate>
|
|
<defaults>
|
|
<allow_any>auth_admin_keep</allow_any>
|
|
<allow_inactive>auth_admin_keep</allow_inactive>
|
|
<allow_active>auth_admin_keep</allow_active>
|
|
</defaults>
|
|
</action>
|
|
</policyconfig>
|