summaryrefslogtreecommitdiffstats
path: root/kernel/printk/printk.c
diff options
context:
space:
mode:
authorAlexander A. Klimov <grandmaster@al2klimov.de>2020-07-02 22:05:36 +0200
committerPetr Mladek <pmladek@suse.com>2020-07-03 14:07:00 +0200
commit8eda94bde4ff004a942ed95e6348de711b0e6da9 (patch)
tree29eb642aec4c913e37b97feaf0b03330671ac68a /kernel/printk/printk.c
parentMerge tag 'printk-for-5.8-kdb-nmi' of git://git.kernel.org/pub/scm/linux/kern... (diff)
downloadlinux-8eda94bde4ff004a942ed95e6348de711b0e6da9.tar.xz
linux-8eda94bde4ff004a942ed95e6348de711b0e6da9.zip
Replace HTTP links with HTTPS ones: vsprintf
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: Petr Mladek <pmladek@suse.com> Reviewed-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com> Signed-off-by: Petr Mladek <pmladek@suse.com> Link: https://lore.kernel.org/r/20200702200536.13389-1-grandmaster@al2klimov.de
Diffstat (limited to 'kernel/printk/printk.c')
0 files changed, 0 insertions, 0 deletions