[LTP] [PATCH 1/5] zram: Require root
Petr Vorel
pvorel@suse.cz
Fri Jan 29 13:18:13 CET 2021
Calling modprobe, rmmod and working with zram device requires root.
Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
testcases/kernel/device-drivers/zram/zram_lib.sh | 1 +
1 file changed, 1 insertion(+)
diff --git a/testcases/kernel/device-drivers/zram/zram_lib.sh b/testcases/kernel/device-drivers/zram/zram_lib.sh
index bdbf2453a..6fa6552ca 100755
--- a/testcases/kernel/device-drivers/zram/zram_lib.sh
+++ b/testcases/kernel/device-drivers/zram/zram_lib.sh
@@ -7,6 +7,7 @@ dev_makeswap=-1
dev_mounted=-1
TST_NEEDS_TMPDIR=1
+TST_NEEDS_ROOT=1
TST_SETUP="zram_load"
TST_CLEANUP="zram_cleanup"
TST_NEEDS_DRIVERS="zram"
--
2.30.0
More information about the ltp
mailing list