Replace HTTP links with HTTPS ones: DISKQUOTA
authorAlexander A. Klimov <grandmaster@al2klimov.de>
Wed, 8 Jul 2020 17:19:05 +0000 (19:19 +0200)
committerJan Kara <jack@suse.cz>
Thu, 9 Jul 2020 06:14:01 +0000 (08:14 +0200)
commit1f1a5be80ceec2acdbd6f221747657fbe3e44a8f
tree82fa2e0c185676aa63c965bd1fb3fe4766272d7c
parent1197d04fd3f1daf75cfd0a68442080186e546178
Replace HTTP links with HTTPS ones: DISKQUOTA

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 neither `\bgnu\.org/license`, nor `\bmozilla\.org/MPL\b`:
            If both the HTTP and HTTPS versions
            return 200 OK and serve the same content:
              Replace HTTP with HTTPS.

Link: https://lore.kernel.org/r/20200708171905.15396-1-grandmaster@al2klimov.de
Signed-off-by: Alexander A. Klimov <grandmaster@al2klimov.de>
Signed-off-by: Jan Kara <jack@suse.cz>
Documentation/filesystems/quota.rst
fs/quota/Kconfig