summary refs log tree commit diff
path: root/local.c
diff options
context:
space:
mode:
Diffstat (limited to 'local.c')
-rw-r--r--local.c10
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;