Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Replace HTTP links with HTTPS ones: CIFS

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 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>
Reviewed-by: Aurelien Aptel <aaptel@suse.com>
Link: https://lore.kernel.org/r/20200627103125.71828-1-grandmaster@al2klimov.de
Signed-off-by: Jonathan Corbet <corbet@lwn.net>

authored by

Alexander A. Klimov and committed by
Jonathan Corbet
cba22b1c c0ad0bef

+9 -9
+1 -1
Documentation/admin-guide/cifs/todo.rst
··· 98 98 Known Bugs 99 99 ========== 100 100 101 - See http://bugzilla.samba.org - search on product "CifsVFS" for 101 + See https://bugzilla.samba.org - search on product "CifsVFS" for 102 102 current bug list. Also check http://bugzilla.kernel.org (Product = File System, Component = CIFS) 103 103 104 104 1) existing symbolic links (Windows reparse points) are recognized but
+3 -3
Documentation/admin-guide/cifs/usage.rst
··· 17 17 Please see 18 18 MS-SMB2 (for detailed SMB2/SMB3/SMB3.1.1 protocol specification) 19 19 http://protocolfreedom.org/ and 20 - http://samba.org/samba/PFIF/ 20 + https://samba.org/samba/PFIF/ 21 21 for more details. 22 22 23 23 ··· 32 32 33 33 For Linux: 34 34 35 - 1) Download the kernel (e.g. from http://www.kernel.org) 35 + 1) Download the kernel (e.g. from https://www.kernel.org) 36 36 and change directory into the top of the kernel directory tree 37 37 (e.g. /usr/src/linux-2.5.73) 38 38 2) make menuconfig (or make xconfig) ··· 831 831 Enabling Kerberos (extended security) works but requires version 1.2 or later 832 832 of the helper program cifs.upcall to be present and to be configured in the 833 833 /etc/request-key.conf file. The cifs.upcall helper program is from the Samba 834 - project(http://www.samba.org). NTLM and NTLMv2 and LANMAN support do not 834 + project(https://www.samba.org). NTLM and NTLMv2 and LANMAN support do not 835 835 require this helper. Note that NTLMv2 security (which does not require the 836 836 cifs.upcall helper program), instead of using Kerberos, is sufficient for 837 837 some use cases.
+1 -1
Documentation/admin-guide/cifs/winucase_convert.pl
··· 16 16 # GNU General Public License for more details. 17 17 # 18 18 # You should have received a copy of the GNU General Public License 19 - # along with this program. If not, see <http://www.gnu.org/licenses/>. 19 + # along with this program. If not, see <https://www.gnu.org/licenses/>. 20 20 # 21 21 22 22 while(<>) {
+2 -2
fs/cifs/cifsacl.c
··· 49 49 {cpu_to_le32(2), 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0} }; 50 50 51 51 /* 52 - * See http://technet.microsoft.com/en-us/library/hh509017(v=ws.10).aspx 52 + * See https://technet.microsoft.com/en-us/library/hh509017(v=ws.10).aspx 53 53 */ 54 54 55 55 /* S-1-5-88 MS NFS and Apple style UID/GID/mode */ ··· 825 825 826 826 /* 827 827 * Fill in the special SID based on the mode. See 828 - * http://technet.microsoft.com/en-us/library/hh509017(v=ws.10).aspx 828 + * https://technet.microsoft.com/en-us/library/hh509017(v=ws.10).aspx 829 829 */ 830 830 unsigned int setup_special_mode_ACE(struct cifs_ace *pntace, __u64 nmode) 831 831 {
+1 -1
fs/cifs/cifsglob.h
··· 928 928 * 929 929 * Citation: 930 930 * 931 - * http://blogs.msdn.com/b/openspecification/archive/2009/04/10/smb-maximum-transmit-buffer-size-and-performance-tuning.aspx 931 + * https://blogs.msdn.com/b/openspecification/archive/2009/04/10/smb-maximum-transmit-buffer-size-and-performance-tuning.aspx 932 932 */ 933 933 #define CIFS_DEFAULT_NON_POSIX_RSIZE (60 * 1024) 934 934 #define CIFS_DEFAULT_NON_POSIX_WSIZE (65536)
+1 -1
fs/cifs/winucase.c
··· 9 9 * 10 10 * 3.1.5.3 Mapping UTF-16 Strings to Upper Case: 11 11 * 12 - * http://msdn.microsoft.com/en-us/library/hh877830.aspx 12 + * https://msdn.microsoft.com/en-us/library/hh877830.aspx 13 13 * http://www.microsoft.com/en-us/download/details.aspx?displaylang=en&id=10921 14 14 * 15 15 * In particular, the table in "Windows 8 Upper Case Mapping Table.txt" was