public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] [PATCH 1/11] bind/bind02: Testcase failed when no root user run it
@ 2015-10-28  3:11 Cui Bixuan
  2015-10-28  3:11 ` [LTP] [PATCH 2/11] capset/capset02: " Cui Bixuan
                   ` (9 more replies)
  0 siblings, 10 replies; 27+ messages in thread
From: Cui Bixuan @ 2015-10-28  3:11 UTC (permalink / raw)
  To: ltp

Add tst_require_root() to testcase for setegid().

Signed-off-by: Cui Bixuan <cuibixuan@huawei.com>
---
 testcases/kernel/syscalls/bind/bind02.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/testcases/kernel/syscalls/bind/bind02.c b/testcases/kernel/syscalls/bind/bind02.c
index 721f525..3dc5652 100644
--- a/testcases/kernel/syscalls/bind/bind02.c
+++ b/testcases/kernel/syscalls/bind/bind02.c
@@ -127,6 +127,8 @@ int main(int argc, char *argv[])
 	 * Linux doesn't have that limitation apparently. */
 	char *username = NULL;
 
+	tst_require_root();
+
 	if (argc != 2) {
 		tst_resm(TINFO, "Defaulting to user nobody");
 		username = strdup(nobody_uid);
-- 
1.6.0.2


^ permalink raw reply related	[flat|nested] 27+ messages in thread

end of thread, other threads:[~2015-11-03  8:45 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-28  3:11 [LTP] [PATCH 1/11] bind/bind02: Testcase failed when no root user run it Cui Bixuan
2015-10-28  3:11 ` [LTP] [PATCH 2/11] capset/capset02: " Cui Bixuan
2015-10-28  3:11 ` [LTP] [PATCH 3/11] chroot/chroot04: " Cui Bixuan
2015-10-28  3:11 ` [LTP] [PATCH 4/11] execve/execve03: " Cui Bixuan
2015-10-28  3:11 ` [LTP] [PATCH 5/11] syscalls/fcntl: Testcases " Cui Bixuan
2015-10-28  3:11 ` [LTP] [PATCH 6/11] mmap/mmap12: Testcase " Cui Bixuan
2015-10-29 11:57   ` Cyril Hrubis
2015-10-30  8:56     ` Cui Bixuan
2015-10-30  9:29       ` Jan Stancek
2015-10-31  0:54         ` Cui Bixuan
2015-10-31  8:15           ` Jan Stancek
2015-11-02 11:54             ` Cyril Hrubis
2015-11-03  8:01               ` [LTP] [PATCH 6/11 v2] mmap/mmap12: Testcase failed for non-root user Cui Bixuan
2015-11-03  8:24                 ` Jan Stancek
2015-11-03  8:45                   ` Cui Bixuan
2015-10-30  9:19     ` [LTP] [PATCH 6/11] mmap/mmap12: Testcase failed when no root user run it Cui Bixuan
2015-10-28  3:11 ` [LTP] [PATCH 7/11] mq_open/mq_open01: " Cui Bixuan
2015-10-28  3:11 ` [LTP] [PATCH 8/11] ipc/msgctl: Testcases " Cui Bixuan
2015-10-28  3:11 ` [LTP] [PATCH 9/11] ipc/semctl: " Cui Bixuan
2015-10-29 12:45   ` Cyril Hrubis
2015-10-28  3:11 ` [LTP] [PATCH 10/11] ipc/shmctl: Testcase " Cui Bixuan
2015-10-28  7:12   ` Zeng Linggang
2015-10-28  7:31     ` [LTP] [PATCH 10/11 v2] " Cui Bixuan
2015-10-28  7:33     ` [LTP] [PATCH 10/11] " Cui Bixuan
2015-10-29 12:46   ` Cyril Hrubis
2015-10-28  3:11 ` [LTP] [PATCH 11/11] unshare/unshare01: " Cui Bixuan
2015-10-29 12:52   ` Cyril Hrubis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox