Re: [go-nuts] Linux, unix.Capset, and runtime.LockOSThread

2020-02-18 Thread Caleb Spare
Thanks for the reply. On Fri, Feb 14, 2020 at 8:33 PM Ian Lance Taylor wrote: > > On Thu, Feb 13, 2020 at 1:14 PM Caleb Spare wrote: > > > > Hi! I have a Linux-specific question about capabilities, threads, and > > syscalls. > > > > I have a Go program which runs other programs with specific >

Re: [go-nuts] Linux, unix.Capset, and runtime.LockOSThread

2020-02-14 Thread Ian Lance Taylor
On Thu, Feb 13, 2020 at 1:14 PM Caleb Spare wrote: > > Hi! I have a Linux-specific question about capabilities, threads, and > syscalls. > > I have a Go program which runs other programs with specific > capabilities set. It basically does the following: > > cmd := exec.Command(...) > runtime.Lock

[go-nuts] Linux, unix.Capset, and runtime.LockOSThread

2020-02-13 Thread Caleb Spare
Hi! I have a Linux-specific question about capabilities, threads, and syscalls. I have a Go program which runs other programs with specific capabilities set. It basically does the following: cmd := exec.Command(...) runtime.LockOSThread() unix.RawSyscall(unix.CAPSET, ...) cmd.Start() Empirically