Re: [LTP] [PATCHv3] containers: Use ltp_syscall for setns incase some libc library do not support it

2015-06-30 Thread Jan Stancek
- Original Message - > From: "Hangbin Liu" > To: "LTP List" > Cc: "Jan Stancek" > Sent: Wednesday, 1 July, 2015 8:35:32 AM > Subject: [LTP][PATCHv3] containers: Use ltp_syscall for setns incase some > libc library do not support it > > Use ltp_syscall for setns incase some libc lib

Re: [LTP] [PATCHv3] containers: Use ltp_syscall for setns incase some libc library do not support it

2015-06-30 Thread Hangbin Liu
2015-07-01 14:39 GMT+08:00 Hangbin Liu : > Opps, there is something wrong with code format. I will correct it. Sorry It seem the gmail webside view make the patch a mess. Form mutt the patch format looks good. Please ignore the last mail and continue review this patch. Sorry for the disturb. Reg

Re: [LTP] [PATCHv3] containers: Use ltp_syscall for setns incase some libc library do not support it

2015-06-30 Thread Hangbin Liu
Opps, there is something wrong with code format. I will correct it. Sorry 2015-07-01 14:35 GMT+08:00 Hangbin Liu : > Use ltp_syscall for setns incase some libc library do not support it. Also > check whether we support setns in setup(). If it's support the syscall will > silently fails and test co

[LTP] [PATCHv3] containers: Use ltp_syscall for setns incase some libc library do not support it

2015-06-30 Thread Hangbin Liu
Use ltp_syscall for setns incase some libc library do not support it. Also check whether we support setns in setup(). If it's support the syscall will silently fails and test continues. If not, then tst_brkm call will end the test with TCONF. Signed-off-by: Hangbin Liu --- testcases/kernel/conta

Re: [LTP] [PATCHv2] containers: Use raw setns syscall for versions of glibc that don't include it

2015-06-30 Thread Jan Stancek
- Original Message - > From: "Hangbin Liu" > To: "LTP List" > Cc: "Jan Stancek" > Sent: Wednesday, 1 July, 2015 7:34:42 AM > Subject: [LTP][PATCHv2] containers: Use raw setns syscall for versions of > glibc that don't include it > > The setns() system call was added to glibc in ver

[LTP] [PATCHv2] containers: Use raw setns syscall for versions of glibc that don't include it

2015-06-30 Thread Hangbin Liu
The setns() system call was added to glibc in version 2.14. On systems with lower version glic, like RHEL6.6 glibc 2.12, ltp will build failed with error "userns04.c:58: undefined reference to `setns'". Use ltp_syscall to make build pass. Signed-off-by: Hangbin Liu --- testcases/kernel/container

Re: [LTP] [PATCH] filecaps: Remove unnecessary c.c file.

2015-06-30 Thread Yuan Sun
I forgot to modify .gitignore file. Please see V2. On 2015/7/1 13:16, Yuan Sun wrote: > The c.c file is the same as check_simple_capset.c except config.h > is included in check_simple_capset.c. Moreover, it is not correct > to use HAVE_SYS_CAPABILITY_H without including config.h. > > Signed-off-by:

[LTP] [PATCH V2] filecaps: Remove unnecessary c.c file.

2015-06-30 Thread Yuan Sun
The c.c file is the same as check_simple_capset.c except config.h is included in check_simple_capset.c. Moreover, it is not correct to use HAVE_SYS_CAPABILITY_H without including config.h. Signed-off-by: Yuan Sun --- testcases/kernel/security/filecaps/.gitignore | 1 - testcases/kernel/security

[LTP] [PATCH] filecaps: Remove unnecessary c.c file.

2015-06-30 Thread Yuan Sun
The c.c file is the same as check_simple_capset.c except config.h is included in check_simple_capset.c. Moreover, it is not correct to use HAVE_SYS_CAPABILITY_H without including config.h. Signed-off-by: Yuan Sun --- testcases/kernel/security/filecaps/c.c | 47 --

[LTP] [PATCH V2] userns01: add capability verification

2015-06-30 Thread Yuan Sun
Signed-off-by: Yuan Sun --- testcases/kernel/containers/userns/Makefile | 2 +- testcases/kernel/containers/userns/userns01.c | 31 +-- 2 files changed, 26 insertions(+), 7 deletions(-) diff --git a/testcases/kernel/containers/userns/Makefile b/testcases/kernel/contai

[LTP] [PATCH] containers: Use raw setns syscall for versions of glibc that don't include it

2015-06-30 Thread Hangbin Liu
The setns() system call was added to glibc in version 2.14. On systems with lower version glic, like RHEL6.6 glibc 2.12, ltp will build failed with error "userns04.c:58: undefined reference to `setns'". Use ltp_syscall to make build pass. Signed-off-by: Hangbin Liu --- testcases/kernel/container

Re: [LTP] [PATCH] sctp: sctputils.c: fix test_peer_addr()

2015-06-30 Thread Hangbin Liu
I also got this issue while running sctp test and confirm this patch fixed the problem. Please push this patch to the repo. Thanks Hangbin 2015-06-22 23:31 GMT+08:00 Alexey Kodanev : > Test always fails with TBROK because inner loop will reset all the > previous set values if we use else branch.

[LTP] [PATCH] cpuctl: correct wrong TCID

2015-06-30 Thread Yuan Sun
Signed-off-by: Yuan Sun --- testcases/kernel/controllers/cpuctl/cpuctl_def_task01.c | 3 +-- testcases/kernel/controllers/cpuctl/cpuctl_def_task02.c | 2 +- testcases/kernel/controllers/cpuctl/cpuctl_def_task03.c | 2 +- testcases/kernel/controllers/cpuctl/cpuctl_def_task0

Re: [LTP] [PATCH] userns01: add capability verification

2015-06-30 Thread Jan Stancek
- Original Message - > From: "Yuan Sun" > To: jstan...@redhat.com > Cc: ltp-list@lists.sourceforge.net > Sent: Thursday, 25 June, 2015 1:54:37 PM > Subject: [PATCH] userns01: add capability verification > > A child process has a full set of permitted and effective capabilities, > even t

Re: [LTP] [PATCH/RFC] module.mk: don't run module builds multiple times

2015-06-30 Thread Jan Stancek
- Original Message - > From: "Cyril Hrubis" > To: "Jan Stancek" > Cc: ltp-list@lists.sourceforge.net > Sent: Thursday, 18 June, 2015 6:35:50 PM > Subject: Re: [LTP] [PATCH/RFC] module.mk: don't run module builds multiple > times > > Hi! > Looks good to me. Pushed with your ACK. Re

[LTP] [PATCH v2] checkpoints: support for propagating value from wake to wait

2015-06-30 Thread Jan Stancek
This patch changes name of tst_futexes array and is using it to store futexes as well as propagated values. The values are of newly defined type: tst_chp_value_t, which is initially defined as int32_t. Patch is adding optional 3rd parameter to TST_SAFE_CHECKPOINT_WAKE, which can be used to propaga