summaryrefslogtreecommitdiff
path: root/test/data
Commit message (Collapse)AuthorAgeFilesLines
* Added support for duktape as JS engineGustavo Lima Chaves2022-01-251-2/+4
| | | | | Original author: Wu Xiaotian (@yetist) Resurrection author, runaway-killer author: Gustavo Lima Chaves (@limachaves)
* Revert "Merge branch 'pwithnall/polkit-51-usr-local-share-is-my-homeboy' ↵revert-2c8287fbJan Rybar2021-04-135-87/+0
| | | | | into 'master'" This reverts merge request !75
* test: Fix a typo in a commentJan Rybar2021-02-255-0/+87
| | | | Signed-off-by: Philip Withnall <withnall@endlessm.com>
* tests: add tests for high uidsZbigniew Jędrzejewski-Szmek2018-12-043-0/+24
|
* Introduce a polkit.Result enumeration for authorization rulesDavid Zeuthen2012-07-064-32/+32
| | | | | | | | | | | | | | This way an authorization rule can do this return polkit.Result.YES; which is slightly nicer than return "yes"; https://bugs.freedesktop.org/show_bug.cgi?id=50983 Signed-off-by: David Zeuthen <zeuthen@gmail.com>
* Combine action and details parametersDavid Zeuthen2012-05-244-61/+75
| | | | | | | | | | This also removes the ability to change detail parameters which is actually a good thing. If we later need a way to change the authentication message, we can always add something like polkit.addAuthenticationMessageRule() so the user can register a function returning a string. Signed-off-by: David Zeuthen <davidz@redhat.com>
* Terminate runaway scriptsDavid Zeuthen2012-05-241-0/+16
| | | | Signed-off-by: David Zeuthen <davidz@redhat.com>
* Add test-cases and 10 second timeout for polkit.spawn()David Zeuthen2012-05-211-0/+63
| | | | Signed-off-by: David Zeuthen <davidz@redhat.com>
* Add netgroup supportDavid Zeuthen2012-05-211-0/+18
| | | | Signed-off-by: David Zeuthen <davidz@redhat.com>
* Test that subject.isInGroup() worksDavid Zeuthen2012-05-211-0/+12
| | | | Signed-off-by: David Zeuthen <davidz@redhat.com>
* Add test cases for evaluation orderDavid Zeuthen2012-05-214-7/+80
| | | | | | | In fact, this test uncovered that we were evaluating the rules in the wrong order. Fix this. Signed-off-by: David Zeuthen <davidz@redhat.com>
* Use addRule() and addAdminRule()David Zeuthen2012-05-211-8/+5
| | | | | | ... as the man page already says. Signed-off-by: David Zeuthen <davidz@redhat.com>
* Also load rules from /usr/share/polkit/rules.dDavid Zeuthen2012-05-212-0/+7
| | | | | | ... in addition to /etc/polkit/rules.d. Signed-off-by: David Zeuthen <davidz@redhat.com>
* Clean up code a bitDavid Zeuthen2012-05-181-0/+2
| | | | | | | Also, move init code into init.js instead of using a C string for it... Signed-off-by: David Zeuthen <davidz@redhat.com>
* Pass details to JS functions and simplify how Subject instances are constructedDavid Zeuthen2012-05-181-5/+5
| | | | Signed-off-by: David Zeuthen <davidz@redhat.com>
* Add experimental authority backend using JavaScript rule filesDavid Zeuthen2012-05-171-0/+32
| | | | Signed-off-by: David Zeuthen <davidz@redhat.com>
* Bug 43610 - Add netgroup supportNikki VonHollen2011-12-226-0/+39
https://bugs.freedesktop.org/show_bug.cgi?id=43610 Added netgroup support and additional unit tests with MockLibc support. Signed-off-by: David Zeuthen <davidz@redhat.com>