Commits
- Commit:
deadd9e1311204415754dcfa404bec4bf3cd557c
- From:
- Omar Polo <op@omarpolo.com>
- Date:
readd proxy certs and `require client ca' support
Was temporarly disabled during the transition to real privsep.
While here, fix a memory leak when using `require client ca'.
Also, avoid leaking info about the parent address space layout to
server processes by not sending pointer values.
- Commit:
309dab3a9093744f611bd048b3549820eaa4a6e5
- From:
- Omar Polo <op@omarpolo.com>
- Date:
fix typo
- Commit:
1c6967b33a31b4c24881a72dc0ab95286ece8f62
- From:
- Omar Polo <op@omarpolo.com>
- Date:
keep cert/key/ocsp path as strings and don't send them via imsg
- Commit:
ca84625a7f59c0c6816cc101c975c134660946f8
- From:
- Omar Polo <op@omarpolo.com>
- Date:
remove foreground / verbose from config
set them as global vars; rename foreground -> debug
- Commit:
cbb7f9fc28abffd18642b83eeb8fe22e8931540f
- From:
- Omar Polo <op@omarpolo.com>
- Date:
move logger() prototype to gmid.h and delete logger.h
- Commit:
3886afceec08126fede93edee884cbd13078cbec
- From:
- Omar Polo <op@omarpolo.com>
- Date:
make server_init and server_configure_done 'public'
server_configure_done is the code we ran in IMSG_RECONF_END splitted
in a separate functions.
This is all needed for ge.c which doesn't do privsep but needs to
bootstrap the server process.
- Commit:
47b0ff105a152b5f44bddaacc41318872370a222
- From:
- Omar Polo <op@omarpolo.com>
- Date:
move log_request to gmid.c
so that ge can provide its own log_request without requiring a
separate logger process.
- Commit:
4f4937f06a536661ffafa589d1cfb5d91ca27bf3
- From:
- Omar Polo <op@omarpolo.com>
- Date:
move make_socket to config.c and make it private
- Commit:
fc9cc497e075cf321fe0dcf4c6783e2eeb8b9d43
- From:
- Omar Polo <op@omarpolo.com>
- Date:
move some new_* functions from parse.y to utils.c
- Commit:
e69e1151f696b01d1fe80570901d21bc78ed5ab1
- From:
- Omar Polo <op@omarpolo.com>
- Date:
drop now unused dispatch_imsg
- Commit:
c26f2460e42aa0822c283c805958989f339e7d8b
- From:
- Omar Polo <op@omarpolo.com>
- Date:
rework the daemon to do fork+exec
It uses the 'common' proc.c from various OpenBSD-daemons.
gmid grew organically bit by bit and it was also the first place where I
tried to implement privsep. It wasn't done very well, in fact the
parent process (that retains root privileges) just fork()s a generation
of servers, all sharing *exactly* the same address space. No good!
Now, we fork() and re-exec() ourselves, so that each process has a fresh
address space.
Some features (require client ca for example) are temporarly disabled,
will be fixed in subsequent commits. The "ge" program is also
temporarly disabled as it needs tweaks to do privsep too.
- Commit:
3a8c76eab2203c2e19ac63a2e22cea79e250cbea
- From:
- Omar Polo <op@omarpolo.com>
- Date:
rename PROC_MAX to PREFORK_MAX
- Commit:
f057c9262272dcbb93085cde46019e1f62bc541a
- From:
- Omar Polo <op@omarpolo.com>
- Date:
adjust comments
- Commit:
c68baad22af4c65c090a3ba6d83a155561275134
- From:
- Omar Polo <op@omarpolo.com>
- Date:
move config-related code to config.c
reuse it in ge too.
- Commit:
bb595bff79eda45b10cf0538b93e2ec72c3db495
- From:
- Omar Polo <op@omarpolo.com>
- Date:
remove unused define