Avoid swapon01 failing with EPERM
PATCH 1/1 Avoid swapon01 failing with EPERM
* Simply require root permissions like the other swapon tests do
* Fixes #1091
Signed-off-by Marius Kittler <[email protected]>
--- testcases/kernel/syscalls/swapon/swapon01.c | 1 + 1 file changed, 1 insertion(+)
testcases/kernel/syscalls/swapon/swapon01.c +1 -0
@@ -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
Quoted 2 lines
* Simply require root permissions like the other swapon tests do
* Fixes #1091
Reported-by Richard Palethorpe <[email protected]>
Reviewed-by Petr Vorel <[email protected]>
Suggested-by Cyril Hrubis <[email protected]>
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
Hi!
Reviewed-by Cyril Hrubis <[email protected]>
Signature · 5 lines
Cyril Hrubis [email protected] -- Mailing list info: https://lists.linux.it/listinfo/ltp
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