Signed-off-by: CAI Qian <[email protected]>
---
testcases/kernel/mem/ksm/ksm01.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/testcases/kernel/mem/ksm/ksm01.c b/testcases/kernel/mem/ksm/ksm01.c
index 1143791..da488ba 100644
--- a/testcases/kernel/mem/ksm/ksm01.c
+++ b/testcases/kernel/mem/ksm/ksm01.c
@@ -442,6 +442,8 @@ void setup(void)
char buf[BUFSIZ];
struct stat new;
+ tst_require_root(tst_exit);
+
snprintf(buf, BUFSIZ, "%s%s", _PATH_KSM, "run");
if (stat(buf, &new) == -1) {
if (errno == ENOENT)
--
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