Replace HTTP links with HTTPS ones: RISC-V
authorAlexander A. Klimov <grandmaster@al2klimov.de>
Sun, 5 Jul 2020 22:02:36 +0000 (00:02 +0200)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Thu, 30 Jul 2020 18:37:40 +0000 (11:37 -0700)
commit8e0c02f27253cde5400f7e57b1369690c6e614a0
tree9c38b13ebd5d1758878c86833a89b50c34773f90
parentf2c9699f65557a31fed4ddb9e5b4d9489b1bf32f
Replace HTTP links with HTTPS ones: RISC-V

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>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
arch/riscv/include/uapi/asm/unistd.h
tools/arch/riscv/include/uapi/asm/unistd.h