Commits
- 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:
99f1fbb0c73b6f62b966760181b3d97f54bbe73b
- From:
- Omar Polo <op@omarpolo.com>
- Date:
regress: use -P with an absolute path
- Commit:
f1f13cb7dc588c90f14efcb513ff177d2798194b
- From:
- Omar Polo <op@omarpolo.com>
- Date:
absolutify the path to the pid file
- Commit:
9b1750057ca036835caaaad26332b7fc88ed196f
- From:
- Omar Polo <op@omarpolo.com>
- Date:
add missing include of gmid.h
- Commit:
2dd5994ae172ed8162aff397b907e4fc476fbaae
- From:
- Omar Polo <op@omarpolo.com>
- Date:
use fatal() in code used in the daemon
- Commit:
bc525c73db98605f5bb8d53fb640b9955997fb48
- From:
- Omar Polo <op@omarpolo.com>
- Date:
fix asprintf failure check
- Commit:
eae52ad493f582222b4f2b748c0043c42bb851cb
- From:
- Omar Polo <op@omarpolo.com>
- Date:
switch to the more usual log.c
- Commit:
58fae4ea901aed6b093c5a336eb09abe6efe5880
- From:
- Omar Polo <op@omarpolo.com>
- Date:
use memchr instead of rolling a custom one
- Commit:
281a8852b3a2d76c10d2fb6476a706746d05509b
- From:
- Omar Polo <op@omarpolo.com>
- Date:
rename log.[ch] to logger.[ch]
- Commit:
3dd89fbb44f7f61b8c89db12f4469ca49c17bc68
- From:
- Omar Polo <op@omarpolo.com>
- Date:
predeclare struct client
- Commit:
3a8c76eab2203c2e19ac63a2e22cea79e250cbea
- From:
- Omar Polo <op@omarpolo.com>
- Date:
rename PROC_MAX to PREFORK_MAX
- Commit:
4267093e37fd7cded943399af8afe3ba825a1e68
- From:
- Omar Polo <op@omarpolo.com>
- Date:
nitpick: fix snprintf check
- 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:
0046c1fe9ca72ed024c8562d51e2b320f7968915
- From:
- Omar Polo <op@omarpolo.com>
- Date:
call setlocale()