Skip to content

Commit

Permalink
docs: hid: Convert link to https
Browse files Browse the repository at this point in the history
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: Jonathan Corbet <[email protected]>
  • Loading branch information
Al2Klimov authored and Jonathan Corbet committed Jul 13, 2020
1 parent 011c9ec commit d3b419c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Documentation/hid/hiddev.rst
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ The HIDDEV API
==============

This description should be read in conjunction with the HID
specification, freely available from http://www.usb.org, and
specification, freely available from https://www.usb.org, and
conveniently linked of http://www.linux-usb.org.

The hiddev API uses a read() interface, and a set of ioctl() calls.
Expand Down

0 comments on commit d3b419c

Please sign in to comment.