summaryrefslogtreecommitdiff
path: root/test/data/usr/share/polkit-1/rules.d/10-testing.rules
diff options
context:
space:
mode:
authorJan Rybar <jrybar@redhat.com>2021-02-25 18:34:30 +0000
committerJan Rybar <jrybar@redhat.com>2021-02-25 18:34:30 +0000
commit2c8287fbd55c5d092370428a1bdbbf0a9fd7d537 (patch)
tree12b44b9e19ccb6f2a120ba16e6f8e055c970a258 /test/data/usr/share/polkit-1/rules.d/10-testing.rules
parent6e8b2263200d5b95b88b26ab10adfb3d5eb66b6d (diff)
parentf1979ce4ceb34d1140e759ec920d0cd2532993d3 (diff)
downloadpolkit-2c8287fbd55c5d092370428a1bdbbf0a9fd7d537.tar.gz
Merge branch 'pwithnall/polkit-51-usr-local-share-is-my-homeboy' into 'master'
Pwithnall/polkit 51 usr local share is my homeboy See merge request polkit/polkit!75
Diffstat (limited to 'test/data/usr/share/polkit-1/rules.d/10-testing.rules')
-rw-r--r--test/data/usr/share/polkit-1/rules.d/10-testing.rules6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/data/usr/share/polkit-1/rules.d/10-testing.rules b/test/data/usr/share/polkit-1/rules.d/10-testing.rules
index 1d553f6..5650945 100644
--- a/test/data/usr/share/polkit-1/rules.d/10-testing.rules
+++ b/test/data/usr/share/polkit-1/rules.d/10-testing.rules
@@ -12,6 +12,12 @@ polkit.addRule(function(action, subject) {
polkit.addRule(function(action, subject) {
if (action.id == "net.company.order1") {
+ return polkit.Result.NO; // earlier rule should win
+ }
+});
+
+polkit.addRule(function(action, subject) {
+ if (action.id == "net.company.order2") {
return polkit.Result.YES;
}
});