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)
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

index 13ce76cc5affef4bff61840c97921a1c63c2dab3..4b989ae15d59f7b8e4765e3ad93b07a2923b2e6e 100644 (file)
@@ -12,7 +12,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * along with this program.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #ifdef __LP64__
index 0e2eeeb1fd27bdca3b4b8e3ca88e2bcd3bdc6fa0..f506cca520b06f4122802b52926f7d0f8f2b76ec 100644 (file)
@@ -12,7 +12,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * along with this program.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #ifdef __LP64__