Commits
- Commit:
61febd28afd90877572f5b0391c3829732e49527
- From:
- Omar Polo <op@omarpolo.com>
- Date:
remove now unused ibuf variable
- 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:
2dd5994ae172ed8162aff397b907e4fc476fbaae
- From:
- Omar Polo <op@omarpolo.com>
- Date:
use fatal() in code used in the daemon
- Commit:
eae52ad493f582222b4f2b748c0043c42bb851cb
- From:
- Omar Polo <op@omarpolo.com>
- Date:
switch to the more usual log.c
- Commit:
281a8852b3a2d76c10d2fb6476a706746d05509b
- From:
- Omar Polo <op@omarpolo.com>
- Date:
rename log.[ch] to logger.[ch]
- Commit:
4267093e37fd7cded943399af8afe3ba825a1e68
- From:
- Omar Polo <op@omarpolo.com>
- Date:
nitpick: fix snprintf check
- Commit:
c68baad22af4c65c090a3ba6d83a155561275134
- From:
- Omar Polo <op@omarpolo.com>
- Date:
move config-related code to config.c
reuse it in ge too.
- Commit:
0046c1fe9ca72ed024c8562d51e2b320f7968915
- From:
- Omar Polo <op@omarpolo.com>
- Date:
call setlocale()
- Commit:
070b32952caf91e2f7f7598230236fdd872f99e5
- From:
- Omar Polo <op@omarpolo.com>
- Date:
move and dedup the tls initalization in server.c
- Commit:
df5058c919cbd1538d0a04cb2a4c179c0291566f
- From:
- Omar Polo <op@omarpolo.com>
- Date:
provide a more usual fatal
fatal usually appends the error string. Add 'fatalx' that doesn't.
Fix callers and move the prototypes to log.h
- Commit:
a01a91db06a943ef0cc8fbb7294786814a63b65c
- From:
- Omar Polo <op@omarpolo.com>
- Date:
move some server-related code to server.c
- Commit:
534afd0ddcba7c3d2f8478e89db026010c6190c5
- From:
- Omar Polo <op@omarpolo.com>
- Date:
make the various strings in the config fixed-length
will help in future restructuring to have fixed-size objects.
- Commit:
c5b4db930eb7d4546b7591bc719ce22abf83beb6
- From:
- Omar Polo <op@omarpolo.com>
- Date:
specify custom version strings for the various cmds
- Commit:
0126d91d1d80d7d8e794b2176556fce969f165cd
- From:
- Omar Polo <op@omarpolo.com>
- Date:
add ge: gemini export!