LukeEmmet / duckling-proxy

Duckling proxy 🦆 is a Gemini proxy to access the Small Web
MIT License
34 stars 5 forks source link

Compile with latest Go, to benefit from ability to setuid on running #7

Closed LukeEmmet closed 3 years ago

LukeEmmet commented 3 years ago

A recent fix to Go 1.15 is that you can now setuid to run the process as a different user after it has started.

An example implementation is demonstrated by @grufwub in her Gopher/gemini server

https://iim.gay:8080/gophi/tree/core/config.go#n22

LukeEmmet commented 3 years ago

see recent branch merge

https://go-review.googlesource.com/c/go/+/210639/

and ticket

https://github.com/golang/go/issues/1435

LukeEmmet commented 3 years ago

Closing this issue since the duckling as a proxy is not running any other executables. That might be more of an issue for a general CGI capable server where there is CGI inside user dirs.