tianon / gosu

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

Add official `setpriv-wrapper.sh` which implements `gosu` in pure POSIX shell via `setpriv` #143

Open tianon opened 3 months ago

tianon commented 3 months ago

This promotes setpriv to the official (coveted) "top" spot in the list of Alternatives.

tianon commented 2 months ago

I think "fragile" is probably the best description of this code. It definitely does The Thing, but probably not the best answer for an actual "load bearing" component of another system, so perhaps I should leave this as-is and only include the README shuffling? Perhaps even with a reference to this PR for users who really want to dig themselves a hole? :thinking: