logo

oasis-root

Compiled tree of Oasis Linux based on own branch at <https://hacktivis.me/git/oasis/> git clone https://anongit.hacktivis.me/git/oasis-root.git

unshare.1 (1547B)


  1. .Dd February 2, 2015
  2. .Dt UNSHARE 1
  3. .Os ubase
  4. .Sh NAME
  5. .Nm unshare
  6. .Nd run program with some namespaces unshared from parent
  7. .Sh SYNOPSIS
  8. .Nm
  9. .Op Fl muinpU
  10. .Ar cmd
  11. .Op Ar args...
  12. .Sh DESCRIPTION
  13. .Nm
  14. unshares the indicated namespaces from the parent process and then executes
  15. the specified program. The namespaces to be unshared are indicated via
  16. options.
  17. .Sh OPTIONS
  18. .Bl -tag -width Ds
  19. .It Fl i
  20. Unshare the System V IPC namespace, so that the calling process has a
  21. private copy of the System V IPC namespace which is not shared with
  22. any other process. This flag has the same effect as the
  23. .Xr clone 2
  24. .Dv CLONE_NEWIPC
  25. flag.
  26. .It Fl m
  27. Unshare the mount namespace, so that the calling process has a private
  28. copy of its namespace which is not shared with any other process.
  29. This flag has the same effect as the
  30. .Xr clone 2
  31. .Dv CLONE_NEWNS
  32. flag.
  33. .It Fl n
  34. Unshare the network namespace, so that the calling process is moved
  35. into a new network namespace which is not shared with any previously
  36. existing process. This flag has the same effect as the
  37. .Xr clone 2
  38. .Dv CLONE_NEWNET
  39. flag.
  40. .It Fl u
  41. Unshare the UTS IPC namespace, so that the calling process has a
  42. private copy of the UTS namespace which is not shared with any other
  43. process. This flag has the same effect as the
  44. .Xr clone 2
  45. .Dv CLONE_NEWUTS
  46. flag.
  47. .It Fl p
  48. Create the process in a new PID namespace. This flag has the same
  49. effect as the
  50. .Xr clone 2
  51. .Dv CLONE_NEWPID
  52. flag.
  53. .It Fl U
  54. The process will have a distinct set of UIDs, GIDs and capabilities.
  55. .El
  56. .Sh SEE ALSO
  57. .Xr clone 2 ,
  58. .Xr unshare 2