[LTP] [PATCH v2 0/3] provide a unified way to parse /proc/cmdline

Li Wang liwang@redhat.com
Sat Mar 9 10:01:10 CET 2024


V1 --> V2
	* redefine the struct name to tst_kcmdline_var
	* make use of SAFE_FOPEN/FCLOSE macro (Petr)
	* read the file char char building up the key and value (Cyril)
	* remove redundant varibales from the test (Petr)

Li Wang (3):
  kconfig: add funtion to parse /proc/cmdline
  init_module: To handle kernel module signature enforcement
  stack_clash: make use of tst_kcmdline_parse

 include/tst_kconfig.h                         | 23 ++++++++++
 lib/tst_kconfig.c                             | 45 +++++++++++++++++++
 testcases/cve/stack_clash.c                   | 14 +++---
 .../syscalls/delete_module/delete_module01.c  |  8 ++++
 .../syscalls/delete_module/delete_module03.c  |  8 ++++
 .../syscalls/finit_module/finit_module01.c    | 15 ++++++-
 .../syscalls/finit_module/finit_module02.c    | 37 +++++++++------
 .../syscalls/init_module/init_module01.c      | 13 ++++++
 .../syscalls/init_module/init_module02.c      | 19 +++++++-
 9 files changed, 158 insertions(+), 24 deletions(-)

-- 
2.40.1



More information about the ltp mailing list