Slide 3
Slide 3 text
Why C code?
- setns ( namespace setting ) : system call changes w.r.t current process thread.
- Go runtime, cannot ensure current thread mapping to particular system thread.
- Even runtime.LockISThread() also cannot.
- So ‘C’ code helps here.
- The nsexec() is invoked before go runtime boots.
- Does nothing if not invoked from container init.
- I.e. no environment variables _LIBCONTAINER_INITPIPE is set.