PolicyKit: Branch 'master'

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Mar 22 15:45:50 UTC 2022


 data/Makefile.am        |    6 ++++++
 data/meson.build        |    5 +++++
 data/policyconfig-1.dtd |   26 ++++++++++++++++++++++++++
 3 files changed, 37 insertions(+)

New commits:
commit a2a805d269c55e2ca3d15a9a3c001aeb882a935e
Author: Bastien Nocera <hadess at hadess.net>
Date:   Tue Mar 22 15:45:49 2022 +0000

    data: Create never shipped policyconfig-1.dtd

diff --git a/data/Makefile.am b/data/Makefile.am
index 6b045be..9064711 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -47,6 +47,11 @@ endif
 
 # ----------------------------------------------------------------------------------------------------
 
+dtddir = $(datadir)/polkit-1
+dtd_DATA = policyconfig-1.dtd
+
+# ----------------------------------------------------------------------------------------------------
+
 CLEANFILES = $(BUILT_SOURCES)
 
 EXTRA_DIST = 							\
@@ -56,6 +61,7 @@ EXTRA_DIST = 							\
 	$(service_in_files) 					\
 	$(dbusconf_in_files) 					\
 	$(systemdservice_in_files) 				\
+	$(dtd_DATA)						\
 	$(NULL)
 
 
diff --git a/data/meson.build b/data/meson.build
index 073bd98..b7b2fcd 100644
--- a/data/meson.build
+++ b/data/meson.build
@@ -35,3 +35,8 @@ if enable_logind
     install_dir: systemd_systemdsystemunitdir,
   )
 endif
+
+install_data(
+  'policyconfig-1.dtd',
+  install_dir: pk_datadir / 'polkit-1'
+)
diff --git a/data/policyconfig-1.dtd b/data/policyconfig-1.dtd
new file mode 100644
index 0000000..e46e2b4
--- /dev/null
+++ b/data/policyconfig-1.dtd
@@ -0,0 +1,26 @@
+<!ELEMENT policyconfig (vendor?, vendor_url?, icon_name?, action+)>
+
+<!ELEMENT vendor (#PCDATA)>
+<!ELEMENT vendor_url (#PCDATA)>
+<!ELEMENT icon_name (#PCDATA)>
+
+<!ELEMENT action (vendor?, vendor_url?, description+, message+, icon_name?, defaults, annotate*)>
+<!ATTLIST action id CDATA #REQUIRED>
+
+<!ELEMENT description (#PCDATA)>
+<!ATTLIST description gettext-domain CDATA #IMPLIED>
+<!ATTLIST description xml:lang CDATA #IMPLIED>
+
+<!ELEMENT message (#PCDATA)>
+<!ATTLIST message gettext-domain CDATA #IMPLIED>
+<!ATTLIST message xml:lang CDATA #IMPLIED>
+
+<!ELEMENT defaults (allow_any|allow_inactive|allow_active)*>
+
+<!-- CDATA must be one of no, auth_self, auth_admin, auth_self_keep, auth_admin_keep, yes -->
+<!ELEMENT allow_any (#PCDATA)>
+<!ELEMENT allow_inactive (#PCDATA)>
+<!ELEMENT allow_active (#PCDATA)>
+
+<!ELEMENT annotate (#PCDATA)>
+<!ATTLIST annotate key CDATA #REQUIRED>


More information about the hal-commit mailing list