diff options
author | Miloslav Trmač <mitr@redhat.com> | 2013-02-14 14:48:20 +0100 |
---|---|---|
committer | Miloslav Trmač <mitr@redhat.com> | 2013-05-06 19:50:18 +0200 |
commit | 31b138d17f259f2d06a86dbbd31202ef43dbfa41 (patch) | |
tree | 6f53612641f1feb019b975ccb73eee6ab15ba95d /src | |
parent | 44bea5072f804c03546d35c4f855f9641c29110d (diff) | |
download | polkit-31b138d17f259f2d06a86dbbd31202ef43dbfa41.tar.gz |
Use auth_admin* instead of auth_self* in examples
From time to time, application developers just copy example
configuration without examining it in details. Because polkit is
typically used to control access to system-level operations, the policy
(and therefore the examples) should limit access to system
administrators only.
Diffstat (limited to 'src')
-rw-r--r-- | src/examples/org.freedesktop.policykit.examples.pkexec.policy.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/examples/org.freedesktop.policykit.examples.pkexec.policy.in b/src/examples/org.freedesktop.policykit.examples.pkexec.policy.in index 049c024..eab7729 100644 --- a/src/examples/org.freedesktop.policykit.examples.pkexec.policy.in +++ b/src/examples/org.freedesktop.policykit.examples.pkexec.policy.in @@ -13,7 +13,7 @@ <defaults> <allow_any>no</allow_any> <allow_inactive>no</allow_inactive> - <allow_active>auth_self_keep</allow_active> + <allow_active>auth_admin_keep</allow_active> </defaults> <annotate key="org.freedesktop.policykit.exec.path">/usr/bin/pk-example-frobnicate</annotate> </action> |