From c26f2460e42aa0822c283c805958989f339e7d8b Mon Sep 17 00:00:00 2001 From: Omar Polo Date: Thu, 8 Jun 2023 13:59:31 +0000 Subject: 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. --- configure | 1 + 1 file changed, 1 insertion(+) (limited to 'configure') diff --git a/configure b/configure index 587d963..c7a1609 100755 --- a/configure +++ b/configure @@ -43,6 +43,7 @@ fi CFLAGS="${CFLAGS} -W -Wall -Wextra -Wmissing-prototypes -Wstrict-prototypes" CFLAGS="${CFLAGS} -Wwrite-strings -Wno-unused-parameter" +CFLAGS="${CFLAGS} -Wno-missing-field-initializers" if [ -z "${LDFLAGS}" ]; then LDFLAGS=`printf "all:\\n\\t@echo \\\$(LDFLAGS)\\n" | make ${MAKE_FLAGS} -sf -` -- cgit v1.2.3