[LTP] [PATCH v2 3/4] shell: add kconfig parse api
Li Wang
liwang@redhat.com
Fri Jan 7 09:41:26 CET 2022
Hi Petr, Xu,
> > Maybe we can combine the arguments into one kconfigs struct and
> > just do once check? something like:
> Yes, it works well. Thanks.
Btw, seems const char *kconfigs[64] is not enough for a long
string combination, you can dynamically allocate memory
according to arguments size. Or, just raise to a big number.
>
> I checked the kernel config, it seems comma can not meet the CONFIG_LSM
> situation (Petr mention it but I don't notice before).
> CONFIG_LSM="yama,loadpin,safesetid,integrity,selinux,smack,tomoyo,apparmor"
>
> so I think we may TST_NEEDS_KCONFIGS_IFS variable and default value is
> comma.
Ok, I'm fine to keep that, and thanks for the instance.
--
Regards,
Li Wang
More information about the ltp
mailing list