Patch "certs: make system keyring depend on built-in x509 parser" has been added to the 5.19-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    certs: make system keyring depend on built-in x509 parser

to the 5.19-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     certs-make-system-keyring-depend-on-built-in-x509-pa.patch
and it can be found in the queue-5.19 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 112b8568de7fdd74634697cceb399329b1c41030
Author: Masahiro Yamada <masahiroy@xxxxxxxxxx>
Date:   Mon Sep 12 15:52:10 2022 +0900

    certs: make system keyring depend on built-in x509 parser
    
    [ Upstream commit 2154aca21408752eaa3eeaf2ba6e942724ff2a4d ]
    
    Commit e90886291c7c ("certs: make system keyring depend on x509 parser")
    is not the right fix because x509_load_certificate_list() can be modular.
    
    The combination of CONFIG_SYSTEM_TRUSTED_KEYRING=y and
    CONFIG_X509_CERTIFICATE_PARSER=m still results in the following error:
    
        LD      .tmp_vmlinux.kallsyms1
      ld: certs/system_keyring.o: in function `load_system_certificate_list':
      system_keyring.c:(.init.text+0x8c): undefined reference to `x509_load_certificate_list'
      make: *** [Makefile:1169: vmlinux] Error 1
    
    Fixes: e90886291c7c ("certs: make system keyring depend on x509 parser")
    Signed-off-by: Masahiro Yamada <masahiroy@xxxxxxxxxx>
    Tested-by: Adam Borowski <kilobyte@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/certs/Kconfig b/certs/Kconfig
index bf9b511573d7..1f109b070877 100644
--- a/certs/Kconfig
+++ b/certs/Kconfig
@@ -43,7 +43,7 @@ config SYSTEM_TRUSTED_KEYRING
 	bool "Provide system-wide ring of trusted keys"
 	depends on KEYS
 	depends on ASYMMETRIC_KEY_TYPE
-	depends on X509_CERTIFICATE_PARSER
+	depends on X509_CERTIFICATE_PARSER = y
 	help
 	  Provide a system keyring to which trusted keys can be added.  Keys in
 	  the keyring are considered to be trusted.  Keys may be added at will



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux