Enable owners plugin

Allow anyone in the all-maintainers group to approve(+2) any change.
Enable the owners plugin on all repositories, and require approval from
at least one owner of all affected files.

Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
diff --git a/rules.pl b/rules.pl
new file mode 100644
index 0000000..afc6eeb
--- /dev/null
+++ b/rules.pl
@@ -0,0 +1,6 @@
+submit_rule(S) :-
+  gerrit:default_submit(D),
+  D =.. [submit | Ds],
+  findall(U, gerrit:commit_label(label('Code-Review', 2), U), Approvers),
+  gerrit_owners:add_owner_approval(Approvers, Ds, A),
+  S =.. [submit | A].