Replace HTTP links with HTTPS ones: security
authorAlexander A. Klimov <grandmaster@al2klimov.de>
Sun, 5 Jul 2020 21:45:12 +0000 (23:45 +0200)
committerJames Morris <jmorris@namei.org>
Thu, 6 Aug 2020 19:00:05 +0000 (12:00 -0700)
commitc9fecf505a3421752a598227f8ef895e97966c4b
tree897e407174652bd7be468f902ebb0e854f5f33a0
parent3d77e6a8804abcc0504c904bd6e5cdf3a5cf8162
Replace HTTP links with HTTPS ones: security

Rationale:
Reduces attack surface on kernel devs opening the links for MITM
as HTTPS traffic is much harder to manipulate.

Deterministic algorithm:
For each file:
  If not .svg:
    For each line:
      If doesn't contain `\bxmlns\b`:
        For each link, `\bhttp://[^# \t\r\n]*(?:\w|/)`:
          If both the HTTP and HTTPS versions
          return 200 OK and serve the same content:
            Replace HTTP with HTTPS.

Signed-off-by: Alexander A. Klimov <grandmaster@al2klimov.de>
Acked-by: John Johansen <john.johansen@canonical.com>
Signed-off-by: James Morris <jmorris@namei.org>
security/Kconfig
security/apparmor/Kconfig
security/integrity/ima/Kconfig
security/integrity/ima/ima_template.c
security/integrity/ima/ima_template_lib.c
security/integrity/ima/ima_template_lib.h
security/keys/encrypted-keys/ecryptfs_format.c
security/keys/encrypted-keys/ecryptfs_format.h
security/keys/encrypted-keys/encrypted.c
security/keys/encrypted-keys/masterkey_trusted.c