tst_kconfig: Add CONFIG_* mappings for keyctl tests
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
@@ -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
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 testslib/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
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 testslib/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". WhenCONFIG_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