[LTP] function tst_parse_cmdline exist?

Cyril Hrubis chrubis@suse.cz
Mon Mar 4 16:23:45 CET 2024


Hi!
> Do we have a funcion similar to tst_parse_cmdline() in LTP lib?

Not yet.

> I asking this because recently people reached to me about the
> init_module01 failing on the system with ' module.sig_enforce=1'
> kernel parameter. That makes me think there are quite many
> various kernel parameter changes in some behavior when added in,
> so if not, I can help to create one to do such a thing.

I suppose that there is no other way to figure out that the signatures
are enforced via commandline, right?

> In a word, the main purpose is just to parse '/proc/cmdline' contents
> and export the necessary value to test case.
> 
> Or, any suggestions on the topic?

We already parse cmdline in the stack_clash.c test, so I suppose we may
as well add a function to the test library.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list