]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitba7cd1c79778741170e32da6fc2a35a35eb37956
treecdb687959a68fee5ade4813bcf8fa2a11630a64d
parentda7c3542a844550f83012bca27eede70b99752a8
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