[LTP] [PATCH v2] lib: tst_kconfig: Add runtime checks for CONFIG_*_NS
Li Wang
liwang@redhat.com
Thu Apr 2 04:38:24 CEST 2026
On Wed, Apr 01, 2026 at 01:51:47PM +0200, Cyril Hrubis wrote:
> Previously LTP Kconfig parsing logic only checked if a feature was
> enabled during kernel compilation (e.g., CONFIG_USER_NS=y). However,
> some kernel features can be compiled in but disabled at runtime via
> kernel command-line or sysctls. Tests relying only on Kconfig variables
> may have failed when features were runtime disabled.
>
> This patch introduces a runtime check mechanism for Kconfig variables.
> When a CONFIG_* variable is parsed as 'y' or 'm' and when runtime check
> has been associated with the variable we run the check and potentionaly
> print a message and override the variable value.
>
> Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
> Reviewed-by: Petr Vorel <pvorel@suse.cz>
Reviewed-by: Li Wang <liwang@redhat.com>
--
Regards,
Li Wang
More information about the ltp
mailing list