On Fri, Feb 17, 2017 at 1:55 PM, Steven Hartland <[email protected]> wrote:
> Recently we started adding support to our systems for opencontainers via
> libcontainer however due to its use of C code for the early hooking this
> means we now can't cross-compile our code any more, which is a PITA.
>
> The main reason for this is the early hooking required to perform setns as
> detailed:
> https://github.com/opencontainers/runc/tree/master/libcontainer/nsenter
>
> Clearly this is done to avoid the issues with multiple threads in the
> runtime, but I was wondering if it would be possible to solve this in a way
> which didn't require CGO hence allowing easy cross compilation.
>
> What are peoples thoughts?

As far as I can tell, a lot of what that code does in C can be done in
Go by setting various fields of syscall.SysProcAttr.

What precisely can not be done in Go today?  Is it just the setns
call?  How would we implement that in syscall.SysProcAttr?  Is this
related to https://golang.org/issue/12125?

Ian

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to