Skip to content

Commit a6fdf0c

Browse files
Al2Klimovgregkh
authored andcommitted
tty: vt: 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: Greg Kroah-Hartman <[email protected]>
1 parent 71614e1 commit a6fdf0c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Documentation/driver-api/serial/n_gsm.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ GSM 0710 tty multiplexor HOWTO
55
This line discipline implements the GSM 07.10 multiplexing protocol
66
detailed in the following 3GPP document:
77

8-
http://www.3gpp.org/ftp/Specs/archive/07_series/07.10/0710-720.zip
8+
https://www.3gpp.org/ftp/Specs/archive/07_series/07.10/0710-720.zip
99

1010
This document give some hints on how to use this driver with GPRS and 3G
1111
modems connected to a physical serial port.

drivers/tty/vt/vt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2520,7 +2520,7 @@ static void do_con_trol(struct tty_struct *tty, struct vc_data *vc, int c)
25202520

25212521
/* is_double_width() is based on the wcwidth() implementation by
25222522
* Markus Kuhn -- 2007-05-26 (Unicode 5.0)
2523-
* Latest version: http://www.cl.cam.ac.uk/~mgk25/ucs/wcwidth.c
2523+
* Latest version: https://www.cl.cam.ac.uk/~mgk25/ucs/wcwidth.c
25242524
*/
25252525
struct interval {
25262526
uint32_t first;

0 commit comments

Comments
 (0)