diff options
author | June McEnroe <june@causal.agency> | 2021-10-05 22:02:19 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2021-10-05 22:02:19 -0400 |
commit | 4910f996d39788b9cacd34f2ae560cf74eee85de (patch) | |
tree | 035243221737f2f179d090e486055de2c40afc70 /local.c | |
parent | Remove certbot default paths (diff) | |
download | pounce-4910f996d39788b9cacd34f2ae560cf74eee85de.tar.gz pounce-4910f996d39788b9cacd34f2ae560cf74eee85de.zip |
FreeBSD: Remove capsicum support
capsicum is too impractical and removing it will allow much more straightforward code.
Diffstat (limited to 'local.c')
-rw-r--r-- | local.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/local.c b/local.c index 8d3ff4d..954c015 100644 --- a/local.c +++ b/local.c @@ -42,10 +42,6 @@ #include <tls.h> #include <unistd.h> -#ifdef __FreeBSD__ -#include <sys/capsicum.h> -#endif - #include "bounce.h" static struct tls *server; @@ -200,12 +196,6 @@ size_t localUnix(int fds[], size_t cap, const char *path) { if (unixDir < 0) err(EX_UNAVAILABLE, "%s", dir); atexit(unixUnlink); -#ifdef __FreeBSD__ - cap_rights_t rights; - error = cap_rights_limit(unixDir, cap_rights_init(&rights, CAP_UNLINKAT)); - if (error) err(EX_OSERR, "cap_rights_limit"); -#endif - unix = true; fds[0] = sock; return 1; |