From bdc6fd7f84d2c99604a790faa622ba84ac9fde59 Mon Sep 17 00:00:00 2001 From: David Zeuthen Date: Mon, 4 Jun 2012 13:40:45 -0400 Subject: State that authorization rules must not rely on SpiderMonkey features ... e.g. we reserve the right to switch out the JS engine. Signed-off-by: David Zeuthen --- docs/man/polkit.xml | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/docs/man/polkit.xml b/docs/man/polkit.xml index 1bcb296..a055707 100644 --- a/docs/man/polkit.xml +++ b/docs/man/polkit.xml @@ -117,11 +117,11 @@ System Context | | For convenience, the libpolkit-gobject-1 library wraps the polkit D-Bus API and is usable from any C/C++ - program as well as higher-level languages GObjectIntrospection - support such as Javascript and Python. A mechanism can also use - the D-Bus API or the - pkcheck1 + such as Javascript and Python. A mechanism can also use the + D-Bus API or the pkcheck1 command to check authorizations. The libpolkit-agent-1 library provides an abstraction of the native authentication system, e.g. @@ -472,7 +472,7 @@ System Context | | /etc/polkit-1/rules.d and /usr/share/polkit-1/rules.d directories by sorting the files in lexical order based on the - basename on each file (and if there's a tie, files in + basename on each file (if there's a tie, files in /etc are processed before files in /usr). @@ -494,6 +494,14 @@ System Context | | through the global polkit object (of type Polkit). + + While the JavaScript interpreter used in particular versions of + polkit may support non-standard features (such as the + let keyword), authorization rules must + conform to + ECMA-262 edition 5 + (in other words, the JavaScript interpreter used may change in future versions of polkit). + The <type>Polkit</type> type -- cgit v1.2.1