Signed-off-by: CAI Qian <[email protected]>
---
testcases/kernel/syscalls/mlock/mlock03.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/testcases/kernel/syscalls/mlock/mlock03.c
b/testcases/kernel/syscalls/mlock/mlock03.c
index d11e42d..b8500b4 100644
--- a/testcases/kernel/syscalls/mlock/mlock03.c
+++ b/testcases/kernel/syscalls/mlock/mlock03.c
@@ -109,6 +109,8 @@ int main(int argc, char *argv[])
void setup(void)
{
+ tst_require_root(tst_exit);
+
tst_sig(FORK, DEF_HANDLER, cleanup);
TEST_PAUSE;
}
--
1.7.3.2From 984a50bf6ea9fd6c192a1a2de1397e629467dc2b Mon Sep 17 00:00:00 2001
From: CAI Qian <[email protected]>
Date: Tue, 11 Jan 2011 16:40:01 +0800
Subject: [PATCH 06/13] mlock03: check root
Signed-off-by: CAI Qian <[email protected]>
---
testcases/kernel/syscalls/mlock/mlock03.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/testcases/kernel/syscalls/mlock/mlock03.c b/testcases/kernel/syscalls/mlock/mlock03.c
index d11e42d..b8500b4 100644
--- a/testcases/kernel/syscalls/mlock/mlock03.c
+++ b/testcases/kernel/syscalls/mlock/mlock03.c
@@ -109,6 +109,8 @@ int main(int argc, char *argv[])
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