forked from strace/strace
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: verify the auxstr of clone(2) when --namespace=switchTo is given
* tests/clone-flags.c: Include <sys/socket.h>. (child_sockpair[2]): New file static variable. (retrieve_userns): New function. (wait_cloned): Extend parameters to pass a string representing userns to caller. (do_clone_newns): New macro. (do_clone): Redefine using do_clone_newns. (child_with_pause): New function. (main): Do clone with CLONE_NEWUSER and print the new user namespace. * tests/clone-flags.test: Pass -e namespace=switchTo option to strace. Signed-off-by: Masatake YAMATO <yamato@redhat.com>
- Loading branch information
Showing
2 changed files
with
51 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters