From 4910f996d39788b9cacd34f2ae560cf74eee85de Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Tue, 5 Oct 2021 22:02:19 -0400 Subject: FreeBSD: Remove capsicum support capsicum is too impractical and removing it will allow much more straightforward code. --- local.c | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'local.c') diff --git a/local.c b/local.c index 8d3ff4d..954c015 100644 --- a/local.c +++ b/local.c @@ -42,10 +42,6 @@ #include #include -#ifdef __FreeBSD__ -#include -#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; -- cgit 1.4.1