Update polkit policy
This commit is contained in:
parent
5e3f33c076
commit
c7bb21a63a
|
@ -9,12 +9,12 @@ import (
|
|||
const POLICY = `<?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">
|
||||
|
||||
"http://www.freedesktop.org/software/polkit/policyconfig-1.dtd">
|
||||
<policyconfig>
|
||||
|
||||
<action id="com.quexten.goldwarden.accessvault">
|
||||
<description>Allow access to the vault</description>
|
||||
<message>Allows access to the vault entries</message>
|
||||
<message>Allows access to the vault</message>
|
||||
<defaults>
|
||||
<allow_any>auth_self</allow_any>
|
||||
<allow_inactive>auth_self</allow_inactive>
|
||||
|
@ -32,13 +32,14 @@ const POLICY = `<?xml version="1.0" encoding="UTF-8"?>
|
|||
</action>
|
||||
<action id="com.quexten.goldwarden.browserbiometrics">
|
||||
<description>Browser Biometrics</description>
|
||||
<message>Authenticate to allow Goldwarden to unlock your browser.</message>
|
||||
<message>Authenticate to allow Goldwarden to unlock your browser</message>
|
||||
<defaults>
|
||||
<allow_any>auth_self</allow_any>
|
||||
<allow_inactive>auth_self</allow_inactive>
|
||||
<allow_active>auth_self</allow_active>
|
||||
</defaults>
|
||||
</action>
|
||||
|
||||
</policyconfig>`
|
||||
|
||||
func CheckBiometrics(approvalType Approval) bool {
|
||||
|
|
|
@ -1,21 +1,12 @@
|
|||
<?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">
|
||||
|
||||
"http://www.freedesktop.org/software/polkit/policyconfig-1.dtd">
|
||||
<policyconfig>
|
||||
<action id="com.quexten.goldwarden.accesscredential">
|
||||
<description>Allow Credential Access</description>
|
||||
<message>Authenticate to allow access to a single credential</message>
|
||||
<defaults>
|
||||
<allow_any>auth_self</allow_any>
|
||||
<allow_inactive>auth_self</allow_inactive>
|
||||
<allow_active>auth_self</allow_active>
|
||||
</defaults>
|
||||
</action>
|
||||
<action id="com.quexten.goldwarden.changepin">
|
||||
<description>Approve Pin Change</description>
|
||||
<message>Authenticate to change your Goldwarden PIN.</message>
|
||||
|
||||
<action id="com.quexten.goldwarden.accessvault">
|
||||
<description>Allow access to the vault</description>
|
||||
<message>Allows access to the vault</message>
|
||||
<defaults>
|
||||
<allow_any>auth_self</allow_any>
|
||||
<allow_inactive>auth_self</allow_inactive>
|
||||
|
@ -23,7 +14,7 @@
|
|||
</defaults>
|
||||
</action>
|
||||
<action id="com.quexten.goldwarden.usesshkey">
|
||||
<description>Use Bitwarden SSH Key</description>
|
||||
<description>Use SSH Key</description>
|
||||
<message>Authenticate to use an SSH Key from your vault</message>
|
||||
<defaults>
|
||||
<allow_any>auth_self</allow_any>
|
||||
|
@ -31,22 +22,14 @@
|
|||
<allow_active>auth_self</allow_active>
|
||||
</defaults>
|
||||
</action>
|
||||
<action id="com.quexten.goldwarden.modifyvault">
|
||||
<description>Modify Bitwarden Vault</description>
|
||||
<message>Authenticate to allow modification of your Bitvarden vault in Goldwarden</message>
|
||||
<defaults>
|
||||
<allow_any>auth_self</allow_any>
|
||||
<allow_inactive>auth_self</allow_inactive>
|
||||
<allow_active>auth_self</allow_active>
|
||||
</defaults>
|
||||
</action>
|
||||
<action id="com.quexten.goldwarden.browserbiometrics">
|
||||
<description>Browser Biometrics</description>
|
||||
<message>Authenticate to allow Goldwarden to unlock your browser.</message>
|
||||
<message>Authenticate to allow Goldwarden to unlock your browser</message>
|
||||
<defaults>
|
||||
<allow_any>auth_self</allow_any>
|
||||
<allow_inactive>auth_self</allow_inactive>
|
||||
<allow_active>auth_self</allow_active>
|
||||
</defaults>
|
||||
</action>
|
||||
|
||||
</policyconfig>
|
Loading…
Reference in New Issue