* [LTP] [COMMITTED] [PATCH 1/2] syscalls/inotify03: Require root
@ 2017-03-15 16:26 Cyril Hrubis
2017-03-15 16:26 ` [LTP] [COMMITTED] [PATCH 2/2] syscalls/ioctl{04, 05, 06}: " Cyril Hrubis
0 siblings, 1 reply; 2+ messages in thread
From: Cyril Hrubis @ 2017-03-15 16:26 UTC (permalink / raw)
To: ltp
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [LTP] [COMMITTED] [PATCH 2/2] syscalls/ioctl{04, 05, 06}: Require root
2017-03-15 16:26 [LTP] [COMMITTED] [PATCH 1/2] syscalls/inotify03: Require root Cyril Hrubis
@ 2017-03-15 16:26 ` Cyril Hrubis
0 siblings, 0 replies; 2+ messages in thread
From: Cyril Hrubis @ 2017-03-15 16:26 UTC (permalink / raw)
To: ltp
I've missed that when writing these testcases, sorry.
Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
---
testcases/kernel/syscalls/ioctl/ioctl04.c | 1 +
testcases/kernel/syscalls/ioctl/ioctl05.c | 1 +
testcases/kernel/syscalls/ioctl/ioctl06.c | 1 +
3 files changed, 3 insertions(+)
diff --git a/testcases/kernel/syscalls/ioctl/ioctl04.c b/testcases/kernel/syscalls/ioctl/ioctl04.c
index 6a44813..8f78247 100644
--- a/testcases/kernel/syscalls/ioctl/ioctl04.c
+++ b/testcases/kernel/syscalls/ioctl/ioctl04.c
@@ -96,6 +96,7 @@ static struct tst_test test = {
.tid = "ioctl04",
.needs_tmpdir = 1,
.format_device = 1,
+ .needs_root = 1,
.setup = setup,
.cleanup = cleanup,
.test_all = verify_ioctl,
diff --git a/testcases/kernel/syscalls/ioctl/ioctl05.c b/testcases/kernel/syscalls/ioctl/ioctl05.c
index c250609..d1b44f1 100644
--- a/testcases/kernel/syscalls/ioctl/ioctl05.c
+++ b/testcases/kernel/syscalls/ioctl/ioctl05.c
@@ -80,6 +80,7 @@ static void cleanup(void)
static struct tst_test test = {
.tid = "ioctl05",
.needs_device = 1,
+ .needs_root = 1,
.cleanup = cleanup,
.test_all = verify_ioctl,
};
diff --git a/testcases/kernel/syscalls/ioctl/ioctl06.c b/testcases/kernel/syscalls/ioctl/ioctl06.c
index d05aa45..082d097 100644
--- a/testcases/kernel/syscalls/ioctl/ioctl06.c
+++ b/testcases/kernel/syscalls/ioctl/ioctl06.c
@@ -64,6 +64,7 @@ static void cleanup(void)
static struct tst_test test = {
.tid = "ioctl06",
+ .needs_root = 1,
.needs_device = 1,
.setup = setup,
.cleanup = cleanup,
--
2.10.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-03-15 16:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-15 16:26 [LTP] [COMMITTED] [PATCH 1/2] syscalls/inotify03: Require root Cyril Hrubis
2017-03-15 16:26 ` [LTP] [COMMITTED] [PATCH 2/2] syscalls/ioctl{04, 05, 06}: " Cyril Hrubis
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.