Skip to contentSkip to conversation

tst_kconfig: Add CONFIG_* mappings for keyctl tests

PATCH Superseded Cyril Hrubis 2 participants 3 messages Sep 22 Library code

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tst_kconfig: Add CONFIG_* mappings for keyctl tests

- keyctl23, keyctl29 need x509_key_parser
- keyctl30 needs pkcs8_key_parser

---
 lib/tst_kconfig.c | 2 ++
 1 file changed, 2 insertions(+)
lib/tst_kconfig.c +2 -0
index 277ac6068..46eeb8ec0 100644
@@ -165,6 +165,8 @@ static struct config_module_map {
 	{"CONFIG_NET_SCH_INGRESS", "sch_ingress"},
 	{"CONFIG_NET_CLS_MATCHALL", "cls_matchall"},
 	{"CONFIG_NET_ACT_PEDIT", "act_pedit"},
+	{"CONFIG_PKCS8_PRIVATE_KEY_PARSER", "pcks8_key_parser"},
+	{"CONFIG_X509_CERTIFICATE_PARSER", "x509_key_parser"},
 	{}
 };
 
Signature · 5 lines
2.54.0


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp
#1 lore raw

Hi Cyril,

lib/tst_kconfig.c static struct config_module_map { · line 168

Quoted 7 lines · Cyril Hrubis

tst_kconfig: Add CONFIG_* mappings for keyctl tests

lib/tst_kconfig.c +1 -0
@@ -165,6 +165,8 @@ static struct config_module_map {
 	{"CONFIG_NET_SCH_INGRESS", "sch_ingress"},
 	{"CONFIG_NET_CLS_MATCHALL", "cls_matchall"},
 	{"CONFIG_NET_ACT_PEDIT", "act_pedit"},
+	{"CONFIG_PKCS8_PRIVATE_KEY_PARSER", "pcks8_key_parser"},

Typo in module name "pcks8_key_parser"; change it to "pkcs8_key_parser". When CONFIG_PKCS8_PRIVATE_KEY_PARSER=m, tst_check_module_driver() fails to find the module and marks the kconfig as unset, causing tests like keyctl30 to be incorrectly skipped with TCONF.

Verdict - Needs revision

---
Note:

The agent can sometimes produce false positives although often its findings are genuine. If you find issues with the review, please comment this email or ignore the suggestions.

Regards,
LTP AI Reviewer

Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp
#2 lore raw

Hi!

Quoted 14 lines · Cyril Hrubis

lib/tst_kconfig.c static struct config_module_map { · line 168

Quoted 7 lines

tst_kconfig: Add CONFIG_* mappings for keyctl tests

lib/tst_kconfig.c +1 -0
@@ -165,6 +165,8 @@ static struct config_module_map {
 	{"CONFIG_NET_SCH_INGRESS", "sch_ingress"},
 	{"CONFIG_NET_CLS_MATCHALL", "cls_matchall"},
 	{"CONFIG_NET_ACT_PEDIT", "act_pedit"},
+	{"CONFIG_PKCS8_PRIVATE_KEY_PARSER", "pcks8_key_parser"},

Typo in module name "pcks8_key_parser"; change it to "pkcs8_key_parser". When CONFIG_PKCS8_PRIVATE_KEY_PARSER=m, tst_check_module_driver() fails to find the module and marks the kconfig as unset, causing tests like keyctl30 to be incorrectly skipped with TCONF.

Quoted 1 line

Verdict - Needs revision

Sigh, send v2.

Signature · 5 lines
Cyril Hrubis
[email protected]

-- 
Mailing list info: https://lists.linux.it/listinfo/ltp