tianon / gosu

Simple Go-based setuid+setgid+setgroups+exec
Apache License 2.0
4.69k stars 312 forks source link

darwin-amd64 gosu binary #73

Closed fahedouch closed 3 years ago

fahedouch commented 4 years ago

Hi folks,

is it possible to generate a darwin-amd64 gosu binary with the actual implementation ?

Cordialy.

tianon commented 4 years ago

I've not tested on a Mac (and I'm not sure if the upstream code I'm using has been tested on a Mac), so this would be dependent on that happening.

tianon commented 4 years ago

Also very curious what the intended usage is? Isn't running things as root on a Mac pretty rare?

fahedouch commented 4 years ago

@tianon There is not a real need. I would have liked to test gosu on my mac but it is not possible without the right binary. Finally I used the Dockerfile to make my test :)

tianon commented 3 years ago

Sorry for the delay; that's fair enough -- I'd say using Docker is definitely the "right" way to run gosu on a Mac (since it's a very Linux-specific tool solving a very specific container problem). :sweat_smile: