Commit Briefs


2c52c623be Omar Polo

convert to use imsg_get_fd()

While here also fix a fd leak in got-read-pack. We were dup'ing imsg.fd without closing imsg.fd later; instead just use imsg_get_fd() to extract the file descriptor. Tested by falsifian and Kyle Ackerman, thanks! 'go ahead' stsp@


56624d2b65 Stefan Sperling

make the gotd auth process provide the user's account name for later use

with tweaks from + ok op@


1963be61de Stefan Sperling

remove dependency of gitwrapper on gotd/auth.c

Move gotd_auth_parseuid() from auth.c to parse.y as gotd_parseuid(), and remove auth.c from the list of source files required by gitwrapper.


5822e79e39 Omar Polo

include sha2.h too where sha1.h is included

In preparation for wide sha256 support; stsp@ agrees. Change done mechanically with find . -iname \*.[cy] -exec sam {} + X ,x/<sha1\.h>/i/\n#include <sha2.h>


2ec74a9e9c Omar Polo

drop double process name from some gotd logs

i.e. "listen: listen: shutting down" -> "listen: shutting down" the procname is already prepended by vlog() ok jamsek


40b85cca5d Stefan Sperling

introduce connection options to gotd.conf

Allow administrators to tweak the default authentication and request timeouts if needed, and to tweak the limit of concurrent connections for specific user accounts. with several tweaks from and ok op@


365cf0f34d Stefan Sperling

move "unix" pledge promise from gotd parent to auth process

The listen process now communicates the client UID/GID to the parent, and the auth process verifies this on behalf of the parent. This allows us to remove the "unix" pledge promise from the parent, removing parent access to syscalls such as listen() and accept() in the AF_UNIX domain. ok tracey@ op@


5e25db14db Stefan Sperling

run gotd authentication in a separate child process

ok op@


e18d071f3c Stefan Sperling

getpwuid() returns NULL without setting errno if no user is found

pointed out by millert@


4cad5be9f8 Omar Polo

zap double grp.h include

spotted by Thomas


ddbe612c69 Stefan Sperling

fix group membership check in gotd auth

ok op@


0ccf3acb6c Stefan Sperling

implement per-repository read/write authorization rules in gotd

ok op@