From e371b3bf41c6121749cacd6127bdf5faed572b00 Mon Sep 17 00:00:00 2001
From: "Daniel P. Berrange"
Date: Fri, 13 Oct 2017 16:30:41 +0100
Subject: [PATCH] Use https:// links for most sites
This adds a rule to require https links for the libvirt, qemu
and kvm websites.
Signed-off-by: Daniel P. Berrange
---
cfg.mk | 17 ++++++
configure.ac | 2 +-
daemon/libvirtd.conf | 2 +-
daemon/libvirtd.init.in | 4 +-
daemon/libvirtd.pod | 6 +-
daemon/libvirtd.service.in | 2 +-
daemon/virt-guest-shutdown.target | 2 +-
docs/404.html.in | 2 +-
docs/aclpolkit.html.in | 2 +-
docs/api_extension.html.in | 2 +-
docs/apps.html.in | 2 +-
docs/bindings.html.in | 10 ++--
docs/csharp.html.in | 6 +-
docs/devguide.html.in | 14 ++---
docs/devhelp/html.xsl | 4 +-
docs/docs.html.in | 4 +-
docs/downloads.html.in | 92 +++++++++++++++----------------
docs/drvlxc.html.in | 2 +-
docs/drvqemu.html.in | 8 +--
docs/formatdomain.html.in | 2 +-
docs/hacking.html.in | 2 +-
docs/internals/eventloop.html.in | 4 +-
docs/java.html.in | 12 ++--
docs/news-2005.html.in | 2 +-
docs/news-2006.html.in | 2 +-
docs/news-2007.html.in | 4 +-
docs/news-2008.html.in | 2 +-
docs/news-2009.html.in | 2 +-
docs/news-2010.html.in | 2 +-
docs/news-2011.html.in | 2 +-
docs/news-2012.html.in | 2 +-
docs/news-2013.html.in | 2 +-
docs/news-2014.html.in | 2 +-
docs/news-2015.html.in | 2 +-
docs/news-2016.html.in | 2 +-
docs/news-html.xsl | 2 +-
docs/php.html.in | 6 +-
docs/securityprocess.html.in | 2 +-
docs/testapi.html.in | 4 +-
docs/testsuites.html.in | 4 +-
docs/testtck.html.in | 2 +-
docs/virshcmdref.html.in | 24 ++++----
docs/windows.html.in | 2 +-
src/access/genpolkit.pl | 2 +-
src/libvirt.c | 6 +-
src/locking/virtlockd.pod | 6 +-
src/locking/virtlockd.service.in | 2 +-
src/logging/virtlogd.pod | 6 +-
src/logging/virtlogd.service.in | 2 +-
src/qemu/qemu_command.c | 2 +-
src/util/virstoragefile.c | 2 +-
tests/virconfdata/libvirtd.conf | 2 +-
tests/virconfdata/libvirtd.out | 2 +-
tools/libvirt-guests.init.in | 4 +-
tools/libvirt-guests.service.in | 2 +-
tools/virsh.c | 2 +-
tools/virsh.pod | 40 +++++++-------
tools/virt-admin.c | 2 +-
tools/virt-admin.pod | 8 +--
tools/virt-host-validate.pod | 4 +-
tools/virt-login-shell.pod | 6 +-
tools/virt-pki-validate.in | 10 ++--
tools/virt-pki-validate.pod | 6 +-
tools/virt-sanlock-cleanup.pod | 6 +-
tools/virt-xml-validate.pod | 6 +-
tools/wireshark/README.md | 2 +-
66 files changed, 211 insertions(+), 194 deletions(-)
diff --git a/cfg.mk b/cfg.mk
index 0f4065b98a..8ad09e7da1 100644
--- a/cfg.mk
+++ b/cfg.mk
@@ -1020,6 +1020,23 @@ sc_prohibit_obj_free_apis_in_virsh:
halt='avoid using virDomain(Snapshot)Free in virsh, use virsh-prefixed wrappers instead' \
$(_sc_search_regexp)
+https_sites = www.libvirt.org
+https_sites += libvirt.org
+https_sites += security.libvirt.org
+https_sites += qemu.org
+https_sites += www.qemu.org
+https_sites += wiki.qemu.org
+https_sites += linux-kvm.org
+https_sites += www.linux-kvm.org
+
+https_re= ($(subst $(space),|,$(https_sites)))
+
+sc_prohibit_http_urls:
+ @prohibit='http://$(https_re)' \
+ exclude="/schemas/" \
+ halt='Links must use https:// protocol' \
+ $(_sc_search_regexp)
+
# We don't use this feature of maint.mk.
prev_version_file = /dev/null
diff --git a/configure.ac b/configure.ac
index 4f420cf8d9..ebe3318e07 100644
--- a/configure.ac
+++ b/configure.ac
@@ -16,7 +16,7 @@ dnl You should have received a copy of the GNU Lesser General Public
dnl License along with this library. If not, see
dnl .
-AC_INIT([libvirt], [3.9.0], [libvir-list@redhat.com], [], [http://libvirt.org])
+AC_INIT([libvirt], [3.9.0], [libvir-list@redhat.com], [], [https://libvirt.org])
AC_CONFIG_SRCDIR([src/libvirt.c])
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_HEADERS([config.h])
diff --git a/daemon/libvirtd.conf b/daemon/libvirtd.conf
index 8a1b3a92db..8e0c0d96d2 100644
--- a/daemon/libvirtd.conf
+++ b/daemon/libvirtd.conf
@@ -1,6 +1,6 @@
# Master libvirt daemon configuration file
#
-# For further information consult http://libvirt.org/format.html
+# For further information consult https://libvirt.org/format.html
#
# NOTE: the tests/daemon-conf regression test script requires
# that each "PARAMETER = VALUE" line in this file have the parameter
diff --git a/daemon/libvirtd.init.in b/daemon/libvirtd.init.in
index 164732905d..d81dca6f2e 100644
--- a/daemon/libvirtd.init.in
+++ b/daemon/libvirtd.init.in
@@ -14,7 +14,7 @@
# Short-Description: daemon for libvirt virtualization API
# Description: This is a daemon for managing guest instances
# and libvirt virtual networks
-# See http://libvirt.org
+# See https://libvirt.org
### END INIT INFO
# the following is chkconfig init header
@@ -24,7 +24,7 @@
# chkconfig: 345 97 03
# description: This is a daemon for managing guest instances \
# and libvirt virtual networks \
-# See http://libvirt.org
+# See https://libvirt.org
#
# processname: libvirtd
# pidfile: @localstatedir@/run/libvirtd.pid
diff --git a/daemon/libvirtd.pod b/daemon/libvirtd.pod
index 8d3fbd13d2..4721e0f4ec 100644
--- a/daemon/libvirtd.pod
+++ b/daemon/libvirtd.pod
@@ -166,7 +166,7 @@ Please report all bugs you discover. This should be done via either:
=item a) the mailing list
-L
+L
=item or,
@@ -174,7 +174,7 @@ B<>
=item b) the bug tracker
-L
+L
=item Alternatively, you may report bugs to your software distributor / vendor.
@@ -199,6 +199,6 @@ PURPOSE
=head1 SEE ALSO
L, L, L, L,
-L, L
+L, L
=cut
diff --git a/daemon/libvirtd.service.in b/daemon/libvirtd.service.in
index fbaf02f3bf..c189f5e653 100644
--- a/daemon/libvirtd.service.in
+++ b/daemon/libvirtd.service.in
@@ -15,7 +15,7 @@ After=apparmor.service
After=local-fs.target
After=remote-fs.target
Documentation=man:libvirtd(8)
-Documentation=http://libvirt.org
+Documentation=https://libvirt.org
[Service]
Type=notify
diff --git a/daemon/virt-guest-shutdown.target b/daemon/virt-guest-shutdown.target
index bf876527b5..25d4aaa267 100644
--- a/daemon/virt-guest-shutdown.target
+++ b/daemon/virt-guest-shutdown.target
@@ -1,3 +1,3 @@
[Unit]
Description=Libvirt guests shutdown
-Documentation=http://libvirt.org
+Documentation=https://libvirt.org
diff --git a/docs/404.html.in b/docs/404.html.in
index bdffff601b..0ac76f125a 100644
--- a/docs/404.html.in
+++ b/docs/404.html.in
@@ -9,7 +9,7 @@
page you were looking for. You might want to try
- - going back to the home page to find
+
- going back to the home page to find
a collection of links to interesting pages on this site
- using the search box at the top right corner of the screen to
locate the content on this site or mailing list archives
diff --git a/docs/aclpolkit.html.in b/docs/aclpolkit.html.in
index 05e3b88150..0e3c8e971f 100644
--- a/docs/aclpolkit.html.in
+++ b/docs/aclpolkit.html.in
@@ -354,7 +354,7 @@ polkit.addRule(function(action, subject) {
See
- source code
+ source code
for a more complex example.
diff --git a/docs/api_extension.html.in b/docs/api_extension.html.in
index 3b37e7bec6..9beec07602 100644
--- a/docs/api_extension.html.in
+++ b/docs/api_extension.html.in
@@ -44,7 +44,7 @@
- http://libvirt.org/downloads.html
+ https://libvirt.org/downloads.html
diff --git a/docs/apps.html.in b/docs/apps.html.in
index df473636ea..60edeb3af4 100644
--- a/docs/apps.html.in
+++ b/docs/apps.html.in
@@ -327,7 +327,7 @@
Allows using simple ruby objects to manipulate
hypervisors, guests, storage, network etc. It is
based on top of
- the native ruby bindings.
+ the native ruby bindings.
diff --git a/docs/bindings.html.in b/docs/bindings.html.in
index 203934b6aa..733c89bc20 100644
--- a/docs/bindings.html.in
+++ b/docs/bindings.html.in
@@ -24,7 +24,7 @@
-
OCaml: Richard Jones develops
- OCaml bindings.
+ OCaml bindings.
-
Perl: Daniel Berrange develops
@@ -33,7 +33,7 @@
-
PHP: Radek Hladik started developing
- PHP bindings in 2010.
+ PHP bindings in 2010.
In February 2011 the binding development has been moved to the libvirt.org website as
@@ -43,13 +43,13 @@
The project is now maintained by Michal Novotny and it's heavily based
on Radek's version. For more information, including
information on posting patches to libvirt-php, please refer
- to the PHP bindings site.
+ to the PHP bindings site.
-
Python: Libvirt's python bindings are split to a
- separate package
+ separate package
since version 1.2.0, older versions came with direct support for the
Python language.
@@ -70,7 +70,7 @@
-
Ruby: Chris Lalancette develops
- Ruby bindings.
+ Ruby bindings.
diff --git a/docs/csharp.html.in b/docs/csharp.html.in
index 2f85fd2b7b..fcca255072 100644
--- a/docs/csharp.html.in
+++ b/docs/csharp.html.in
@@ -38,7 +38,7 @@
-->
@@ -46,7 +46,7 @@
The C# bindings source code is maintained in a git repository available on
- libvirt.org:
+ libvirt.org:
@@ -58,7 +58,7 @@ git clone git://libvirt.org/libvirt-csharp.git
-http://libvirt.org/git/?p=libvirt-csharp.git;a=summary
+https://libvirt.org/git/?p=libvirt-csharp.git;a=summary
diff --git a/docs/devguide.html.in b/docs/devguide.html.in
index b949f04a16..f460f1dd58 100644
--- a/docs/devguide.html.in
+++ b/docs/devguide.html.in
@@ -12,10 +12,10 @@
Contributing content
@@ -29,13 +29,13 @@
# C language
-$ git clone git://libvirt.org/libvirt-appdev-guide.git
+$ git clone git://libvirt.org/libvirt-appdev-guide.git
# Python language
-$ git clone git://libvirt.org/libvirt-appdev-guide-python.git
+$ git clone git://libvirt.org/libvirt-appdev-guide-python.git
# Publican Style/Theme
-$ git clone git://libvirt.org/libvirt-publican.git
+$ git clone git://libvirt.org/libvirt-publican.git