aboutsummaryrefslogtreecommitdiff
path: root/sandbox.c
AgeCommit message (Collapse)Author
2021-01-28don't include err.h, gmid.h (via config.h) does thatOmar Polo
2021-01-25[seccomp] allow getrandomOmar Polo
2021-01-25we don't need unveil "x" in listenerOmar Polo
not a big deal, since the pledge prohibits us to exec, but nevertheless.
2021-01-24[seccomp] allow fcntl F_SETFDOmar Polo
musl does a F_SETFD in its fdopendir
2021-01-23fix dateOmar Polo
2021-01-23added missic copyright noticeOmar Polo
2021-01-21drop seccomp.h: not neededOmar Polo
2021-01-20fmtOmar Polo
2021-01-20allow clock_gettime and a bit of fmtOmar Polo
alpine on amd64 (under OpenBSD vmd) tries to do a clock_gettime. I don't know why, but it doesn't seem a problem to allow it.
2021-01-20fix BPFOmar Polo
2021-01-20tighten the rules for fcntlOmar Polo
allow only the F_GETFL and F_SETFL commands
2021-01-20explain the poll messOmar Polo
2021-01-18__NR_poll doesn't seem to be defined on aarch64Omar Polo
2021-01-17[seccomp] allow also pollOmar Polo
on the latest fedora we glibc uses poll. On the other linux distro I tried (void), musl is probably providing poll as a ppoll wrapper.
2021-01-17we don't need to check for CGI anymoreOmar Polo
2021-01-17initial seccomp supportOmar Polo
2021-01-16split into two processes: listener and executorOmar Polo
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.
2021-01-15sandbox also on FreeBSD with capsicumOmar Polo