diff options
author | David Zeuthen <zeuthen@gmail.com> | 2012-06-04 13:40:45 -0400 |
---|---|---|
committer | David Zeuthen <zeuthen@gmail.com> | 2012-06-04 13:40:45 -0400 |
commit | bdc6fd7f84d2c99604a790faa622ba84ac9fde59 (patch) | |
tree | 4744ae449fdd60fcbffca7dc6fb8a0d73121a90a /docs | |
parent | b87f5fcafc64ff4a6ad8f1eac69fa7e00b51ec46 (diff) |
State that authorization rules must not rely on SpiderMonkey featureswip/js-rule-files
... e.g. we reserve the right to switch out the JS engine.
Signed-off-by: David Zeuthen <zeuthen@gmail.com>
Diffstat (limited to 'docs')
-rw-r--r-- | docs/man/polkit.xml | 18 |
1 files 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 | | <para> For convenience, the <literal>libpolkit-gobject-1</literal> library wraps the polkit D-Bus API and is usable from any C/C++ - program as well as higher-level languages <ulink + program as well as higher-level languages supporting <ulink url="https://live.gnome.org/GObjectIntrospection">GObjectIntrospection</ulink> - support such as Javascript and Python. A mechanism can also use - the D-Bus API or the - <link linkend="pkcheck.1"><citerefentry><refentrytitle>pkcheck</refentrytitle><manvolnum>1</manvolnum></citerefentry></link> + such as Javascript and Python. A mechanism can also use the + D-Bus API or the <link + linkend="pkcheck.1"><citerefentry><refentrytitle>pkcheck</refentrytitle><manvolnum>1</manvolnum></citerefentry></link> command to check authorizations. The <literal>libpolkit-agent-1</literal> library provides an abstraction of the native authentication system, e.g. @@ -472,7 +472,7 @@ System Context | | <filename class='directory'>/etc/polkit-1/rules.d</filename> and <filename class='directory'>/usr/share/polkit-1/rules.d</filename> 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 <filename class='directory'>/etc</filename> are processed before files in <filename class='directory'>/usr</filename>). @@ -494,6 +494,14 @@ System Context | | through the global <literal>polkit</literal> object (of type <type>Polkit</type>). </para> + <para> + While the JavaScript interpreter used in particular versions of + polkit may support non-standard features (such as the + <emphasis>let</emphasis> keyword), authorization rules must + conform to + <ulink url="http://en.wikipedia.org/wiki/ECMAScript#ECMAScript.2C_5th_Edition">ECMA-262 edition 5</ulink> + (in other words, the JavaScript interpreter used may change in future versions of polkit). + </para> <refsect2 id="polkit-rules-polkit"> <title>The <type>Polkit</type> type</title> |