summaryrefslogtreecommitdiff
path: root/test/data/usr/local/share/polkit-1/rules.d/25-testing.rules
blob: df373b6b487cf03c2abdfdf6b2dee3d132579806 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/* -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*- */

/* see test/polkitbackend/test-polkitbackendjsauthority.c */

polkit.addRule(function(action, subject) {
    if (action.id == "net.company.order0") {
        return polkit.Result.NO; // earlier rule should win
    }
});

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.NO; // earlier rule should win
    }
});

polkit.addRule(function(action, subject) {
    if (action.id == "net.company.order3") {
        return polkit.Result.NO; // earlier rule should win
    }
});

polkit.addRule(function(action, subject) {
    if (action.id == "net.company.order4") {
        return polkit.Result.NO; // earlier rule should win
    }
});

polkit.addRule(function(action, subject) {
    if (action.id == "net.company.order5") {
        return polkit.Result.NO; // earlier rule should win
    }
});