Replace HTTP links with HTTPS ones: CIFS
authorAlexander A. Klimov <grandmaster@al2klimov.de>
Sat, 27 Jun 2020 10:31:25 +0000 (12:31 +0200)
committerJonathan Corbet <corbet@lwn.net>
Sun, 5 Jul 2020 20:23:38 +0000 (14:23 -0600)
commitcba22b1c5945696d01635ffb001443974f98bcd4
treecdb687959a68fee5ade4813bcf8fa2a11630a64d
parentc0ad0befed93a6f567edb230954b744d4926cafa
Replace HTTP links with HTTPS ones: CIFS

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>
Reviewed-by: Aurelien Aptel <aaptel@suse.com>
Link: https://lore.kernel.org/r/20200627103125.71828-1-grandmaster@al2klimov.de
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Documentation/admin-guide/cifs/todo.rst
Documentation/admin-guide/cifs/usage.rst
Documentation/admin-guide/cifs/winucase_convert.pl
fs/cifs/cifsacl.c
fs/cifs/cifsglob.h
fs/cifs/winucase.c