Signed-off-by: CAI Qian <[email protected]>
---
 testcases/kernel/syscalls/fork/fork13.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/testcases/kernel/syscalls/fork/fork13.c 
b/testcases/kernel/syscalls/fork/fork13.c
index 2fe0770..1a40a30 100644
--- a/testcases/kernel/syscalls/fork/fork13.c
+++ b/testcases/kernel/syscalls/fork/fork13.c
@@ -137,6 +137,8 @@ void setup(void)
        int fd;
        char buf[BUFSIZ];
 
+       tst_require_root(tst_exit);
+
        tst_sig(FORK, DEF_HANDLER, cleanup);
        TEST_PAUSE;
        /* Backup pid_max value. */
-- 
1.7.3.2
From fac380d6bf53212aed4e29e138170f7bb599aa46 Mon Sep 17 00:00:00 2001
From: CAI Qian <[email protected]>
Date: Tue, 11 Jan 2011 16:42:07 +0800
Subject: [PATCH 08/13] fork13: check root


Signed-off-by: CAI Qian <[email protected]>
---
 testcases/kernel/syscalls/fork/fork13.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/testcases/kernel/syscalls/fork/fork13.c b/testcases/kernel/syscalls/fork/fork13.c
index 2fe0770..1a40a30 100644
--- a/testcases/kernel/syscalls/fork/fork13.c
+++ b/testcases/kernel/syscalls/fork/fork13.c
@@ -137,6 +137,8 @@ void setup(void)
 	int fd;
 	char buf[BUFSIZ];
 
+	tst_require_root(tst_exit);
+
 	tst_sig(FORK, DEF_HANDLER, cleanup);
 	TEST_PAUSE;
 	/* Backup pid_max value. */
-- 
1.7.3.2

------------------------------------------------------------------------------
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web.   Learn how to 
best implement a security strategy that keeps consumers' information secure 
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl 
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to