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

diff --git a/testcases/kernel/syscalls/mmap/mmap10.c 
b/testcases/kernel/syscalls/mmap/mmap10.c
index fe9d622..58754df 100644
--- a/testcases/kernel/syscalls/mmap/mmap10.c
+++ b/testcases/kernel/syscalls/mmap/mmap10.c
@@ -168,6 +168,8 @@ void cleanup(void)
 
 void setup(void)
 {
+       tst_require_root(tst_exit);
+
        tst_sig(FORK, DEF_HANDLER, cleanup);
        TEST_PAUSE;
 }
-- 
1.7.3.2
From d3fd38df3e626ee1dc726bc8bf2c63914677eb1b Mon Sep 17 00:00:00 2001
From: CAI Qian <[email protected]>
Date: Tue, 11 Jan 2011 16:35:30 +0800
Subject: [PATCH 02/13] mmap10: check root


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

diff --git a/testcases/kernel/syscalls/mmap/mmap10.c b/testcases/kernel/syscalls/mmap/mmap10.c
index fe9d622..58754df 100644
--- a/testcases/kernel/syscalls/mmap/mmap10.c
+++ b/testcases/kernel/syscalls/mmap/mmap10.c
@@ -168,6 +168,8 @@ void cleanup(void)
 
 void setup(void)
 {
+	tst_require_root(tst_exit);
+
 	tst_sig(FORK, DEF_HANDLER, cleanup);
 	TEST_PAUSE;
 }
-- 
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