From 555c24a55dca000d028a429591c7ea1ad54a6f43 Mon Sep 17 00:00:00 2001 From: Martin Kletzander Date: Thu, 11 Nov 2021 15:44:58 +0100 Subject: [PATCH] docs: Simplify explanation of tls_allowed_dn_list wildcards MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This removes a dead link, the need for users to understand a glib function and a improper reference to fnmatch (as we only expand asterisks to any string). Signed-off-by: Martin Kletzander Reviewed-by: Daniel P. Berrangé --- docs/remote.html.in | 4 ++-- src/remote/libvirtd.conf.in | 4 +--- tests/virconfdata/libvirtd.conf | 3 +-- tests/virconfdata/libvirtd.out | 3 +-- 4 files changed, 5 insertions(+), 9 deletions(-) diff --git a/docs/remote.html.in b/docs/remote.html.in index cc8db80c95..66f56a3a64 100644 --- a/docs/remote.html.in +++ b/docs/remote.html.in @@ -249,8 +249,8 @@ Blank lines and comments beginning with # are ignored.

This list may contain wildcards such as "C=GB,ST=London,L=London,O=Libvirt Project,CN=*" - See the POSIX fnmatch function for the format - of the wildcards. + Any * matches in the string matches any number of consecutive characters, + like a simplified glob(7).

Note that if this is an empty list, no client can connect. diff --git a/src/remote/libvirtd.conf.in b/src/remote/libvirtd.conf.in index 8e709856aa..b18c5885a1 100644 --- a/src/remote/libvirtd.conf.in +++ b/src/remote/libvirtd.conf.in @@ -290,9 +290,7 @@ # # "C=GB,ST=London,L=London,O=Red Hat,CN=*" # -# See the g_pattern_match function for the format of the wildcards: -# -# https://developer.gnome.org/glib/stable/glib-Glob-style-pattern-matching.html +# Any * matches any number of consecutive spaces, like a simplified glob(7). # # NB If this is an empty list, no client can connect, so comment out # entirely rather than using empty list to disable these checks diff --git a/tests/virconfdata/libvirtd.conf b/tests/virconfdata/libvirtd.conf index 6d1fd33dcd..e850e1b873 100644 --- a/tests/virconfdata/libvirtd.conf +++ b/tests/virconfdata/libvirtd.conf @@ -183,9 +183,8 @@ tls_no_verify_certificate = 1 # # "C=GB,ST=London,L=London,O=Red Hat,CN=*" # -# See the g_pattern_match function for the format of the wildcards. +# Any * matches any number of consecutive spaces, like a simplified glob(7). # -# https://developer.gnome.org/glib/stable/glib-Glob-style-pattern-matching.html # # NB If this is an empty list, no client can connect, so comment out # entirely rather than using empty list to disable these checks diff --git a/tests/virconfdata/libvirtd.out b/tests/virconfdata/libvirtd.out index ce50480b8c..0755c5dc0a 100644 --- a/tests/virconfdata/libvirtd.out +++ b/tests/virconfdata/libvirtd.out @@ -147,9 +147,8 @@ tls_no_verify_certificate = 1 # # "C=GB,ST=London,L=London,O=Red Hat,CN=*" # -# See the g_pattern_match function for the format of the wildcards. +# Any * matches any number of consecutive spaces, like a simplified glob(7). # -# https://developer.gnome.org/glib/stable/glib-Glob-style-pattern-matching.html # # NB If this is an empty list, no client can connect, so comment out # entirely rather than using empty list to disable these checks