[LTP] [PATCH 1/1] keyctl05: Require root

Petr Vorel pvorel@suse.cz
Mon Jan 22 07:38:30 CET 2024


Modprobe always require root.

Fixes: f4e132233 ("keyctl05: Add modprobe dns_resolver")
Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
I hate require root for setup work, but in this case is needed in order
to get dns_resolver tested. I'm sorry to forget on this.

Kind regards,
Petr

 testcases/kernel/syscalls/keyctl/keyctl05.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/testcases/kernel/syscalls/keyctl/keyctl05.c b/testcases/kernel/syscalls/keyctl/keyctl05.c
index a79a5763b..78ac490da 100644
--- a/testcases/kernel/syscalls/keyctl/keyctl05.c
+++ b/testcases/kernel/syscalls/keyctl/keyctl05.c
@@ -228,6 +228,7 @@ static void do_test(unsigned int i)
 }
 
 static struct tst_test test = {
+	.needs_root = 1,
 	.tcnt = 3,
 	.setup = setup,
 	.test = do_test,
-- 
2.43.0



More information about the ltp mailing list