joe-at-startupmedia / pmon3

Golang Production Process Manager
10 stars 0 forks source link

Processes don't inherit all the user's groups #27

Closed cherryroots closed 3 months ago

cherryroots commented 3 months ago

One of the processes I run needs access to the "render" group for ffmpeg to use vaapi, but the spawned process doesn't include any of the supplementary groups of the user spawning the process.

https://github.com/joe-at-startupmedia/pmon3/blob/c89c7ae0de41baf94ae1d2e9b25d86abda8837f3/pmond/process/executor.go#L34-L37

https://pkg.go.dev/syscall#Credential -> Groups

joe-at-startupmedia commented 3 months ago

@cherryroots does the commit referenced above resolve the issue?

cherryroots commented 3 months ago

Yeah that fixes it, thanks for the quick response