From 8cf92e149b121ec32d5295a5036e1cdc28abd32d Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Sat, 18 Feb 2023 04:22:00 +0800 Subject: [PATCH] bluez: Update kernel configuration section 1. I'm pretty sure MD5, SHA1, and KEY_DH_OPERATIONS are not needed because I've tried testing bluez w/o them. 2. Some options mentioned by the package's README should be added. 3. The menu hierarchy of Cryptographic API section has been changed in recent kernel releases so we need to adapt. 4. Let's not encourage people to use CONFIG_EXPERT. --- general/sysutils/bluez.xml | 37 ++++++++++++++++++++++--------------- 1 file changed, 22 insertions(+), 15 deletions(-) diff --git a/general/sysutils/bluez.xml b/general/sysutils/bluez.xml index e860c0e114..77994c72a3 100644 --- a/general/sysutils/bluez.xml +++ b/general/sysutils/bluez.xml @@ -102,17 +102,20 @@ If you are building this package to use bluetooth devices (rather than as a build dependency), enable the following options in the kernel configuration, - also the options below the next paragraph if you intend to run the tests, - and recompile the kernel if necessary: + also the options in the Cryptographic API section if + you intend to run the tests, and recompile the kernel if necessary: General Setup ---> - [*] Configure standard kernel features (expert users) [CONFIG_EXPERT] - [*] Enable timerfd() system call [CONFIG_TIMERFD] - [*] Enable eventfd() system call [CONFIG_EVENTFD] + [ /*] Configure standard kernel features (expert users) [CONFIG_EXPERT] + (Note: if CONFIG_EXPERT is disabled, the following options will be + hidden and enabled implicitly. We DO NOT recommend to enable + CONFIG_EXPERT unless you are really an expert user.) + [*] Enable timerfd() system call [CONFIG_TIMERFD] + [*] Enable eventfd() system call [CONFIG_EVENTFD] [*] Networking support ---> [CONFIG_NET] - <*/M> Bluetooth subsystem support ---> [CONFIG_BT] + <*/M> Bluetooth subsystem support ---> [CONFIG_BT] <*/M> RFCOMM protocol support [CONFIG_BT_RFCOMM] [*] RFCOMM TTY support [CONFIG_BT_RFCOMM_TTY] <*/M> BNEP protocol support [CONFIG_BT_BNEP] @@ -122,17 +125,21 @@ Bluetooth device drivers ---> (Select the appropriate drivers for your Bluetooth hardware) - <*/M> RF switch subsystem support ---- [CONFIG_RFKILL] + <*/M> RF switch subsystem support ---- [CONFIG_RFKILL] -*- Cryptographic API ---> - <*/M*> User-space cryptographic algorithm configuration [CONFIG_CRYPTO_USER] - <*/M*> User-space interface for hash algorithms [CONFIG_CRYPTO_USER_API_HASH] - <*/M*> User-space interface for symmetric key cipher algorithms [CONFIG_CRYPTO_USER_API_SKCIPHER] - <*/M*> MD5 digest algorithm [CONFIG_CRYPTO_MD5] - <*/M*> SHA1 digest algorithm [CONFIG_CRYPTO_SHA1] - -Security Options ---> - <*/M*> Diffie-Hellman operations on retained keys [CONFIG_KEY_DH_OPERATIONS] + Crypto core or helper --- > + <*/M> User-space cryptographic algorithm configuration [CONFIG_CRYPTO_USER] + Block ciphers ---> + <*/M> AES (Advanced Encryption Standard) [CONFIG_CRYPTO_AES] + AEAD (authenticated encryption with associated data) ciphers ---> + <*/M> CCM (Counter with Cipher Block Chaining-MAC) [CONFIG_CRYPTO_CCM] + Hashes, digests, and MACs ---> + <*/M> CMAC (Cipher-based MAC) [CONFIG_CRYPTO_CMAC] + Userspace interface ---> + <*/M> Hash algorithms [CONFIG_CRYPTO_USER_API_HASH] + <*/M> Symmetric key cipher algorithms [CONFIG_CRYPTO_USER_API_SKCIPHER] + <*/M> AEAD cipher algorithms [CONFIG_CRYPTO_USER_API_AEAD]