Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

syscall: add a way (through SysProcAttr?) to use Linux clone(2) flags in fork/exec. #6214

Closed
remyoudompheng opened this issue Aug 22, 2013 · 4 comments
Milestone

Comments

@remyoudompheng
Copy link
Contributor

@remyoudompheng remyoudompheng commented Aug 22, 2013

For systems programming (container-like) I would like to access for example through
syscall.SysProcAttr clone flags that control the properties of forked child processes
(e.g. CLONE_NEWPID, CLONE_NEWNS, CLONE_NEWNET, CLONE_NEWUTS).

I have prepared 2 draft CLs:
- add CLONE_* constants to syscall: https://golang.org/cl/13160043/
- use clone() instead of fork() in syscall/exec_linux.c:
https://golang.org/cl/13159044/
@remyoudompheng
Copy link
Contributor Author

@remyoudompheng remyoudompheng commented Aug 22, 2013

Comment 1:

I forgot to mention this is for Linux.
@alberts
Copy link
Contributor

@alberts alberts commented Aug 22, 2013

Comment 2:

Mount namespaces are awesome. Being able to call Unshare early in a Go program would be
nice.
@remyoudompheng
Copy link
Contributor Author

@remyoudompheng remyoudompheng commented Aug 23, 2013

Comment 3:

This issue was updated by revision d4f719e.

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/13160043
@remyoudompheng
Copy link
Contributor Author

@remyoudompheng remyoudompheng commented Aug 24, 2013

Comment 4:

This issue was closed by revision 534c67a.

Status changed to Fixed.

@rsc rsc added this to the Go1.2 milestone Apr 14, 2015
@rsc rsc removed the go1.2maybe label Apr 14, 2015
@golang golang locked and limited conversation to collaborators Jun 24, 2016
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.