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: David S. Miller <davem@davemloft.net>
		
	
			
		
			
				
	
	
		
			47 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			47 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| # SPDX-License-Identifier: GPL-2.0-only
 | |
| menuconfig IP_DCCP
 | |
| 	tristate "The DCCP Protocol"
 | |
| 	depends on INET
 | |
| 	help
 | |
| 	  Datagram Congestion Control Protocol (RFC 4340)
 | |
| 
 | |
| 	  From https://www.ietf.org/rfc/rfc4340.txt:
 | |
| 
 | |
| 	  The Datagram Congestion Control Protocol (DCCP) is a transport
 | |
| 	  protocol that implements bidirectional, unicast connections of
 | |
| 	  congestion-controlled, unreliable datagrams. It should be suitable
 | |
| 	  for use by applications such as streaming media, Internet telephony,
 | |
| 	  and on-line games.
 | |
| 
 | |
| 	  To compile this protocol support as a module, choose M here: the
 | |
| 	  module will be called dccp.
 | |
| 
 | |
| 	  If in doubt, say N.
 | |
| 
 | |
| if IP_DCCP
 | |
| 
 | |
| config INET_DCCP_DIAG
 | |
| 	depends on INET_DIAG
 | |
| 	def_tristate y if (IP_DCCP = y && INET_DIAG = y)
 | |
| 	def_tristate m
 | |
| 
 | |
| source "net/dccp/ccids/Kconfig"
 | |
| 
 | |
| menu "DCCP Kernel Hacking"
 | |
| 	depends on DEBUG_KERNEL=y
 | |
| 
 | |
| config IP_DCCP_DEBUG
 | |
| 	bool "DCCP debug messages"
 | |
| 	help
 | |
| 	  Only use this if you're hacking DCCP.
 | |
| 
 | |
| 	  When compiling DCCP as a module, this debugging output can be toggled
 | |
| 	  by setting the parameter dccp_debug of the `dccp' module to 0 or 1.
 | |
| 
 | |
| 	  Just say N.
 | |
| 
 | |
| 
 | |
| endmenu
 | |
| 
 | |
| endif # IP_DDCP
 |