History log of /external/ltp/testcases/kernel/containers/userns/userns04.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
38e181cbc686d59dcfd1b1b90ee0d8e5f1dd7505 25-Jul-2016 Cyril Hrubis <chrubis@suse.cz> containers,tomoyo: Fix order of included headers

Since the test.h defined clone(...) macro in order to avoid direct use
of the function it has to be included after all system headers,
otherwise the definition of clone() function in sched.h will be replaced
as well.

This wasn't the case for most of the containers/*/*.c testcases which
included test.h followed by foo_helper.h header that included sched.h.
The code in question compiled by a pure luck as the clone function
definition was replaced by a garbage which had been syntactically
correct.

This patch moves the test.h header after the foo_helper.h and also
removes a few duplicated includes as well.

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/containers/userns/userns04.c
e0ae8586089a599dded941183bba0cabb294589b 07-Aug-2015 Yuan Sun <sunyuan3@huawei.com> container: use tst_record_childstatus() in userns[1234]

Signed-off-by: Yuan Sun <sunyuan3@huawei.com>
Reviewed-by: Jan Stancek <jstancek@redhat.com>
/external/ltp/testcases/kernel/containers/userns/userns04.c
e591cccde9e3bcbaa16b5a0f8d0dde6091d94df1 01-Jul-2015 Hangbin Liu <liuhangbin@gmail.com> containers: use ltp_syscall instead of setns()

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 <liuhangbin@gmail.com>
Signed-off-by: Jan Stancek <jstancek@redhat.com>
/external/ltp/testcases/kernel/containers/userns/userns04.c
0bf02576a0a64a79cf199b52e2712c03daa25ac7 26-Jun-2015 Yuan Sun <sunyuan3@huawei.com> containers: new testcase userns04

If a namespace isn't another namespace's ancestor, the process in
first namespace does not have the CAP_SYS_ADMIN capability in the
second namespace and the setns() call fails.

Signed-off-by: Yuan Sun <sunyuan3@huawei.com>
Signed-off-by: Jan Stancek <jstancek@redhat.com>
/external/ltp/testcases/kernel/containers/userns/userns04.c