mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 10:00:17 +00:00
Replace HTTP links with HTTPS ones: DMI/SMBIOS SUPPORT
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 <grandmaster@al2klimov.de>
Signed-off-by: Jean Delvare <jdelvare@suse.de>
This commit is contained in:
committed by
Jean Delvare
parent
11ba468877
commit
a3d13a0a23
@@ -21,7 +21,7 @@ EXPORT_SYMBOL_GPL(dmi_kobj);
|
|||||||
/*
|
/*
|
||||||
* DMI stands for "Desktop Management Interface". It is part
|
* DMI stands for "Desktop Management Interface". It is part
|
||||||
* of and an antecedent to, SMBIOS, which stands for System
|
* of and an antecedent to, SMBIOS, which stands for System
|
||||||
* Management BIOS. See further: http://www.dmtf.org/standards
|
* Management BIOS. See further: https://www.dmtf.org/standards
|
||||||
*/
|
*/
|
||||||
static const char dmi_empty_string[] = "";
|
static const char dmi_empty_string[] = "";
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user