Skip to content

Commit 496b24e

Browse files
Al2Klimovkees
authored andcommitted
gcc-plugins: Replace HTTP links with HTTPS ones
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 neither `\bgnu\.org/license`, nor `\bmozilla\.org/MPL\b`: 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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Kees Cook <[email protected]>
1 parent 8dd7054 commit 496b24e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

scripts/gcc-plugins/cyc_complexity_plugin.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Homepage:
66
* https://github.com/ephox-gcc-plugins/cyclomatic_complexity
77
*
8-
* http://en.wikipedia.org/wiki/Cyclomatic_complexity
8+
* https://en.wikipedia.org/wiki/Cyclomatic_complexity
99
* The complexity M is then defined as:
1010
* M = E - N + 2P
1111
* where

scripts/gcc-plugins/sancov_plugin.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*
1212
* You can read about it more here:
1313
* https://gcc.gnu.org/viewcvs/gcc?limit_changes=0&view=revision&revision=231296
14-
* http://lwn.net/Articles/674854/
14+
* https://lwn.net/Articles/674854/
1515
* https://github.com/google/syzkaller
1616
* https://lwn.net/Articles/677764/
1717
*

scripts/gcc-plugins/structleak_plugin.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* otherwise leak kernel stack to userland if they aren't properly initialized
1212
* by later code
1313
*
14-
* Homepage: http://pax.grsecurity.net/
14+
* Homepage: https://pax.grsecurity.net/
1515
*
1616
* Options:
1717
* -fplugin-arg-structleak_plugin-disable

0 commit comments

Comments
 (0)