summaryrefslogtreecommitdiffstats
path: root/sudoers/user.rng
diff options
context:
space:
mode:
authorSumit Bose <sbose@nb.localdomain>2008-09-18 10:46:33 +0200
committerSumit Bose <sbose@nb.localdomain>2008-09-18 10:46:33 +0200
commit7bfb88bbf648000b4c2bf853a11ad2bd3f4b2d85 (patch)
treeb5e5bf2cd5768dd129d23fb76cb30304cd5315e5 /sudoers/user.rng
parent575f23f9ca93b302cb487c037edcbb8bf7554437 (diff)
downloadipa_policy-7bfb88bbf648000b4c2bf853a11ad2bd3f4b2d85.tar.gz
ipa_policy-7bfb88bbf648000b4c2bf853a11ad2bd3f4b2d85.tar.xz
ipa_policy-7bfb88bbf648000b4c2bf853a11ad2bd3f4b2d85.zip
added fcusack's work
Diffstat (limited to 'sudoers/user.rng')
-rw-r--r--sudoers/user.rng49
1 files changed, 49 insertions, 0 deletions
diff --git a/sudoers/user.rng b/sudoers/user.rng
new file mode 100644
index 0000000..b0aec32
--- /dev/null
+++ b/sudoers/user.rng
@@ -0,0 +1,49 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<grammar xmlns="http://relaxng.org/ns/structure/1.0"
+ datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"
+ xmlns:a="http://freeipa.org/xml/rng/ns/annotations/1.0">
+
+ <a:doc> user configuration</a:doc>
+
+ <start ns="http://freeipa.org/xml/rng/user/1.0">
+ <element name="user">
+ <ref name="options"/>
+ <ref name="anyElement"/>
+ </element>
+
+ </start>
+
+ <define name="options">
+ <zeroOrMore>
+ <choice>
+ <attribute name="uids">
+ <text/>
+ </attribute>
+ </choice>
+ </zeroOrMore>
+ </define>
+ <!--
+ This allows anything in another namespace.
+ The way nsName works requires that this be in each schema (grammar);
+ it cannot be included.
+ -->
+ <define name="anyElement">
+ <element>
+ <anyName>
+ <except>
+ <nsName/>
+ <nsName ns=""/>
+ </except>
+ </anyName>
+ <zeroOrMore>
+ <choice>
+ <attribute>
+ <anyName/>
+ </attribute>
+ <text/>
+ <ref name="anyElement"/>
+ </choice>
+ </zeroOrMore>
+ </element>
+ </define>
+</grammar>