[LTP] [COMMITTED] [PATCH 1/2] syscalls/inotify03: Require root

Cyril Hrubis chrubis@suse.cz
Wed Mar 15 17:26:01 CET 2017


We are mounting a device there after all.

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
---
 testcases/kernel/syscalls/inotify/inotify03.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/testcases/kernel/syscalls/inotify/inotify03.c b/testcases/kernel/syscalls/inotify/inotify03.c
index 3ff33ef..d3007b0 100644
--- a/testcases/kernel/syscalls/inotify/inotify03.c
+++ b/testcases/kernel/syscalls/inotify/inotify03.c
@@ -166,6 +166,8 @@ static void setup(void)
 {
 	int ret;
 
+	tst_require_root();
+
 	tst_sig(NOFORK, DEF_HANDLER, cleanup);
 
 	TEST_PAUSE;
-- 
2.10.2



More information about the ltp mailing list