public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] [PATCH 06/13] mlock03: check root
       [not found] <506635417.42951.1294736018285.JavaMail.root@zmail06.collab.prod.int.phx2.redhat.com>
@ 2011-01-11  8:53 ` CAI Qian
  0 siblings, 0 replies; only message in thread
From: CAI Qian @ 2011-01-11  8:53 UTC (permalink / raw)
  To: LTP list

[-- Attachment #1: Type: text/plain, Size: 553 bytes --]

Signed-off-by: CAI Qian <caiqian@redhat.com>
---
 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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0006-mlock03-check-root.patch --]
[-- Type: text/x-patch; name=0006-mlock03-check-root.patch, Size: 745 bytes --]

From 984a50bf6ea9fd6c192a1a2de1397e629467dc2b Mon Sep 17 00:00:00 2001
From: CAI Qian <caiqian@redhat.com>
Date: Tue, 11 Jan 2011 16:40:01 +0800
Subject: [PATCH 06/13] mlock03: check root


Signed-off-by: CAI Qian <caiqian@redhat.com>
---
 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


[-- Attachment #3: Type: text/plain, Size: 414 bytes --]

------------------------------------------------------------------------------
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 

[-- Attachment #4: Type: text/plain, Size: 155 bytes --]

_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2011-01-11  8:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <506635417.42951.1294736018285.JavaMail.root@zmail06.collab.prod.int.phx2.redhat.com>
2011-01-11  8:53 ` [LTP] [PATCH 06/13] mlock03: check root CAI Qian

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