[LTP] [PATCH V2] containers: new testcase userns06

2015-07-31 Thread Yuan Sun
When a process with non-zero user IDs performs an execve(), the process's capability sets are cleared. When a process with zero user IDs performs an execve(), the process's capability sets are set. Signed-off-by: Yuan Sun --- runtest/containers | 1 + testcases/

Re: [LTP] [PATCH V2] containers: new testcase userns05

2015-07-31 Thread Yuan Sun
I forgot to add .gitignore. Please ignore the patch. On 2015/7/31 14:17, Yuan Sun wrote: >A process created via fork(2) or clone(2) without the CLONE_NEWUSER > flag is a member of the same user namespace as its parent. >When unshare an user namespace, the calling process is moved into a > n

[LTP] [PATCH V3] containers: new testcase userns05

2015-07-31 Thread Yuan Sun
A process created via fork(2) or clone(2) without the CLONE_NEWUSER flag is a member of the same user namespace as its parent. When unshare an user namespace, the calling process is moved into a new user namespace which is not shared with any previously existing process. Signed-off-by: Yuan Su

Re: [LTP] How to compie a ltp-case into 32-bit on the 64bit system

2015-07-31 Thread Li Wang
The program is here. msgrcv08.c --- /* * Copyright (c) 2015 Author: Gabriellla Schmidt * Modify: Li Wang * * This program is free software; you can redistribute it and/or modify it * under the terms of version 2 of the GNU General Public License as * publish

Re: [LTP] How to compie a ltp-case into 32-bit on the 64bit system

2015-07-31 Thread Cui Bixuan
On 2015/7/31 14:24, Li Wang wrote: > Then, I came up with a idea that I don't include the ltp-lib file in > 'msgrcv08.c', > and just add two lines in the .../ipc/msgrcv/Makefile: > > msgrcv08: > gcc -g -O2 -Wall -m32 msgrcv08.c -o msgrcv08 > > It works for me, but I know it's not appro

[LTP] [PATCH] define CLONE_NEWNS in case a standard library isn't installed.

2015-07-31 Thread Yuan Sun
Signed-off-by: Yuan Sun --- testcases/kernel/containers/libclone/libclone.c | 2 +- testcases/kernel/containers/libclone/libclone.h | 6 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/testcases/kernel/containers/libclone/libclone.c b/testcases/kernel/containers/libclone/li