Can you set effective user to run child as non root user ?
vaghelan opened this issue · comments
Nilesh Vaghela commented
Sergey Yarmonov commented
I think yes. You can use syscall.Credential
to set uid:
ctx := &daemon.Context{
Credential: &syscall.Credential{
Uid: uid,
},
}