Skip to contentSkip to conversation

Avoid swapon01 failing with EPERM

PATCH In review Marius Kittler 3 participants 4 messages Oct 11, 2023 – Oct 12, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Avoid swapon01 failing with EPERM

* Simply require root permissions like the other swapon tests do
* Fixes #1091

---
 testcases/kernel/syscalls/swapon/swapon01.c | 1 +
 1 file changed, 1 insertion(+)
testcases/kernel/syscalls/swapon/swapon01.c +1 -0
index c334ae246..b5c3f359c 100644
@@ -40,6 +40,7 @@ static void setup(void)
 }
 
 static struct tst_test test = {
+	.needs_root = 1,
 	.needs_tmpdir = 1,
 	.test_all = verify_swapon,
 	.setup = setup
Signature · 5 lines
2.42.0


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp
Reviewed-by on v1 1/1
#1 lore raw
Quoted 2 lines

* Simply require root permissions like the other swapon tests do
* Fixes #1091

Fixes 23fa0e045 ("syscalls/swapon/swapon01: Convert swapon01 to the new API")

Thanks!

Kind regards,
Petr

Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp
#3 lore raw

Hi all,

thanks, merged!

very very nit: better to mark as this:

Quoted 1 line

* Fixes #1091

Fixes #1091

Kind regards,
Petr

Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp