unshare: what is shared by default? · util-linux/util-linux · Discussion #3839 · GitHub
Skip to content
Discussion options

You must be logged in to vote

It follows kernel syscall behavior:

man 2 unshare:

       If flags is specified as zero, then unshare() is a no-op; no changes are made to the calling
       process's execution context.

The result is that unshare(1) without any option just executes the shell.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by abitrolly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants