From c15c72cdf37f508549e341ef0f1baf238dd8cc8d Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Tue, 15 Sep 2026 16:59:29 +0200 Subject: [PATCH] varlink: mention the /run/varlink/registry/ directory in the spec Systemd implements the /run/varlink/registry/ directory in [1]. It was not mentioned in the spec but it should be listed here as it complements the user.varlink xattr. [1] https://github.com/systemd/systemd/pull/40590 --- specs/varlink.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/specs/varlink.md b/specs/varlink.md index ac7d0d43..abbef45c 100644 --- a/specs/varlink.md +++ b/specs/varlink.md @@ -1125,6 +1125,30 @@ the extended attributes SHOULD be set by the service manager when allocating them, and not be delayed until the service they are associated with ultimately gets activated. +### Service Registry Directory + +To allow clients to discover the well-known, public Varlink services +available on a system without having to enumerate all socket inodes of +the system, services SHOULD bind their entrypoint socket inode inside +the `/run/varlink/registry/` directory, or place a symlink to it there. + +Entries in this directory SHOULD be named after the Varlink interface +the service implements, e.g. `/run/varlink/registry/org.example.ftl` +for a service implementing the `org.example.ftl` interface. A service +implementing multiple well-known interfaces SHOULD be registered under +each of them. + +Inodes in this directory that neither qualify as socket inodes nor as +symlinks to them SHOULD be ignored, to allow future extensions of the +registry. + +The registry complements the `user.varlink` extended attribute +described above: the attribute identifies Varlink sockets wherever +they are located, while the registry provides a well-known place to +look for public services. Services MAY bind their entrypoint socket +outside of the registry, hence clients MUST NOT assume the registry +lists all Varlink services available on the system. + ## Transport: HTTP Varlink can be encapsulated in HTTP, in order to make services