delete_module0{1, 3}: Skip when kernel is locked down
PATCH 1/1 delete_module0{1, 3}: Skip when kernel is locked down
Lockdown requires signed modules, otherwise tests fails with EPERM. TCONF until we solve signing modules in LTP build.
--- testcases/kernel/syscalls/delete_module/delete_module01.c | 4 ++++ testcases/kernel/syscalls/delete_module/delete_module03.c | 4 ++++ 2 files changed, 8 insertions(+)
testcases/kernel/syscalls/delete_module/delete_module01.c +4 -0
@@ -25,6 +25,10 @@ static int module_loaded;static void do_delete_module (void ) { +/* lockdown requires signed modules */ +if (tst_lockdown_enabled ()) +tst_brk (TCONF ,"Kernel is locked down, skip this test" ); +if (module_loaded ==0 ) {tst_module_load (MODULE_NAME_KO ,NULL ); module_loaded =1 ;
testcases/kernel/syscalls/delete_module/delete_module03.c +4 -0
@@ -50,6 +50,10 @@ static void do_delete_module(void)static void setup (void ) { +/* lockdown requires signed modules */ +if (tst_lockdown_enabled ()) +tst_brk (TCONF ,"Kernel is locked down, skip this test" ); +/* Load first kernel module */ tst_module_load (DUMMY_MOD_KO ,NULL ); dummy_mod_loaded =1 ;
Signature · 1 line
2.32.0
PATCH 1/1 delete_module0{1, 3}: Skip when kernel is locked down
Hi,
Quoted 2 lines
Lockdown requires signed modules, otherwise tests fails with EPERM. TCONF until we solve signing modules in LTP build.
BTW up now only 4 tests are using tst_lockdown_enabled() check, but maybe it's a time to add flag .skip_on_lockdown, as docparse would benefit from it.
Kind regards,
Petr
PATCH 1/1 delete_module0{1, 3}: Skip when kernel is locked down
Quoted 5 lines · Petr Vorel
Hi,
Quoted 2 lines
Lockdown requires signed modules, otherwise tests fails with EPERM. TCONF until we solve signing modules in LTP build.
Quoted 4 lines
BTW up now only 4 tests are using
tst_lockdown_enabled()check, but maybe it's a
time to add flag .skip_on_lockdown, as docparse would benefit from it.
I guess we'll find more over time.
Quoted 8 lines
Kind regards,
Petr--
Mailing list info: https://lists.linux.it/listinfo/ltp
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linux.it/pipermail/ltp/attachments/20210629/aa3e9b00/attachment-0001.htm>
PATCH 1/1 delete_module0{1, 3}: Skip when kernel is locked down
In reply to Petr VorelQuoted 8 lines · Petr Vorel
Hi,
Quoted 2 lines
Lockdown requires signed modules, otherwise tests fails with EPERM. TCONF until we solve signing modules in LTP build.
BTW up now only 4 tests are using
tst_lockdown_enabled()check, but maybe it's a
time to add flag .skip_on_lockdown, as docparse would benefit from it.
Make sense!
Signature · 5 lines
Regards, Li Wang -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.linux.it/pipermail/ltp/attachments/20210629/73dd714b/attachment.htm>
PATCH 1/1 delete_module0{1, 3}: Skip when kernel is locked down
Hi Jan, Li,
thanks for your review, merged!
Kind regards,
Petr