Blob
- Date:
- Message:
- split into two processes: listener and executor this way, we can sandbox the listener with seccomp (todo) or capsicum (already done) and still have CGI scripts. When we want to exec, we tell the executor what to do, the executor executes the scripts and send the fd backt to the listener.
- Actions:
- History | Blame | Raw File
1 CC = cc2 CFLAGS = -Wall -Wextra -g3 LDFLAGS = -ltls4 LEX = lex5 YACC = yacc7 .PHONY: all clean test9 all: gmid TAGS README.md11 lex.yy.c: lex.l y.tab.c12 ${LEX} lex.l14 y.tab.c: parse.y15 ${YACC} -b y -d parse.y17 OBJS = gmid.o iri.o utf8.o lex.yy.o y.tab.o ex.o cgi.o sandbox.o18 gmid: ${OBJS}19 ${CC} ${OBJS} -o gmid ${LDFLAGS}21 TAGS: gmid.c iri.c utf8.c ex.c cgi.c sandbox.c22 -etags gmid.c iri.c utf8.c ex.c cgi.c sandbox.c || true24 clean:25 rm -f *.o lex.yy.c y.tab.c y.tab.h y.output gmid iri_test27 iri_test: iri_test.o iri.o utf8.o28 ${CC} iri_test.o iri.o utf8.o -o iri_test ${LDFLAGS}30 test: iri_test31 ./iri_test