From 70526a33810b0ffcd2b3fa09a379ef8af5aca6fd Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Fri, 27 Oct 2023 19:51:41 +0100 Subject: [PATCH] Containers: Reserve all metadata fields for future standardization Now that we have the instance ID, Flatpak-aware apps can look up per-instance metadata in a Flatpak-specific way (by reading the file that Flatpak provides), and similarly any other container framework can provide its own mechanism to get extensible metadata; so the value of providing container-manager-defined metadata is perhaps limited. However, it seems valuable to have somewhere to put standardized metadata: for example, we could have a shared specification between Wayland and D-Bus to define a name for keys that could be common to multiple sandbox frameworks. For example, it could include a string that is a freedesktop.org app ID, or a string that is an icon name, or a boolean that is true if networking is permitted. This takes dbus/dbus#479 off the critical path for getting this feature merged. Helps: https://gitlab.freedesktop.org/dbus/dbus/-/issues/479 Signed-off-by: Simon McVittie --- doc/dbus-specification.xml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/doc/dbus-specification.xml b/doc/dbus-specification.xml index d3da33d1..b4380dfb 100644 --- a/doc/dbus-specification.xml +++ b/doc/dbus-specification.xml @@ -7544,9 +7544,10 @@ 3 DICT<STRING,VARIANT> - Metadata describing the application or container, with the - keys and values defined by the maintainers of the container - type. + Metadata describing the application or container. + All keys and values are reserved for future standardization, + either in this specification or in a separate + freedesktop.org specification referenced by this one. @@ -7915,9 +7916,10 @@ 6 DICT<STRING,VARIANT> - Metadata describing the application or container, with the - keys and values defined by the maintainers of the container - type. + Metadata describing the application or container. + All keys and values are reserved for future standardization, + either in this specification or in a separate + freedesktop.org specification referenced by this one. This output parameter is controlled by the creator of the per-container server.