From e327478e756368dda26846a10f59ddd34a38232d Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Fri, 2 Jun 2017 12:04:00 +0100 Subject: [PATCH] spec: Document the Features and Interfaces properties on o.fd.DBus Signed-off-by: Simon McVittie Reviewed-by: Philip Withnall Bug: https://bugs.freedesktop.org/show_bug.cgi?id=101257 --- doc/dbus-specification.xml | 116 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 116 insertions(+) diff --git a/doc/dbus-specification.xml b/doc/dbus-specification.xml index d575c66..7013e8b 100644 --- a/doc/dbus-specification.xml +++ b/doc/dbus-specification.xml @@ -6661,6 +6661,122 @@ + + Message Bus Properties + + The special message bus name org.freedesktop.DBus + exports several properties (see + ) on the object path + /org/freedesktop/DBus. + + + + <literal>org.freedesktop.DBus.Features</literal> + + As a property: + + Read-only constant ARRAY of STRING Features + + This property lists abstract “features” provided by the message + bus, and can be used by clients to detect the capabilities + of the message bus with which they are communicating. + This property was added in version 1.11.x of the reference + implementation of the message bus. + + + + Items in the returned array not containing “.” are defined + by this specification. Bus daemon implementors wishing to advertise + features not mentioned in this document should either contribute + patches to this specification, or use keys containing “.” and + starting with their own reversed domain name, for example + com.example.MyBus.SubliminalMessages. + + + + The features currently defined in this specification are as follows: + + + + AppArmor + + + This message bus filters messages via the + AppArmor + security framework. This feature should only be + advertised if AppArmor mediation is enabled and + active at runtime; merely compiling in support + for AppArmor should not result in this feature being + advertised on message bus instances where it is disabled by + message bus or operating system configuration. + + + + + + SELinux + + + This message bus filters messages via the + SELinux + security framework. Similar to apparmor, + this feature should only be advertised if SELinux mediation + is enabled and active at runtime (if SELinux is placed in + permissive mode, that is still considered to be active). + + + + + + SystemdActivation + + + When asked to activate a service that has the + SystemdService field in its + .service file, this message bus will + carry out systemd activation (for details see + ). + + + + + + + + + + <literal>org.freedesktop.DBus.Interfaces</literal> + + As a property: + + Read-only constant ARRAY of STRING Interfaces + + This property lists interfaces provided by the + /org/freedesktop/DBus object, + and can be used by clients to detect the capabilities + of the message bus with which they are communicating. + Unlike the standard Introspectable interface, querying this + property does not require parsing XML. + This property was added in version 1.11.x of the reference + implementation of the message bus. + + + + The standard org.freedesktop.DBus and + org.freedesktop.DBus.Properties interfaces + are not included in the value of this property, because their + presence can be inferred from the fact that a method call on + org.freedesktop.DBus.Properties asking for + properties of org.freedesktop.DBus was + successful. The standard org.freedesktop.DBus.Peer + and org.freedesktop.DBus.Introspectable + interfaces are not included in the value of this property either, + because they do not indicate features of the message bus + implementation. + + + +