summary refs log tree commit diff
path: root/www/temp.causal.agency/up.c
diff options
context:
space:
mode:
Diffstat (limited to 'www/temp.causal.agency/up.c')
-rw-r--r--www/temp.causal.agency/up.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/www/temp.causal.agency/up.c b/www/temp.causal.agency/up.c
index 91e37c0f..4b83b564 100644
--- a/www/temp.causal.agency/up.c
+++ b/www/temp.causal.agency/up.c
@@ -26,10 +26,6 @@
 #include <time.h>
 #include <unistd.h>
 
-#ifdef __FreeBSD__
-#include <sys/capsicum.h>
-#endif
-
 #include <kcgi.h>
 #include <kcgihtml.h>
 
@@ -147,13 +143,6 @@ int main(int argc, char *argv[]) {
 	if (error) err(EX_OSERR, "unveil");
 #endif
 
-#ifdef __FreeBSD__
-	cap_rights_t rights;
-	cap_rights_init(&rights, CAP_LOOKUP, CAP_CREATE, CAP_PWRITE);
-	error = cap_rights_limit(dir, &rights);
-	if (error) err(EX_OSERR, "cap_rights_limit");
-#endif
-
 	if (!khttp_fcgi_test()) {
 #ifdef __OpenBSD__
 		error = pledge("stdio wpath cpath proc", NULL);
@@ -168,10 +157,6 @@ int main(int argc, char *argv[]) {
 		error = pledge("stdio wpath cpath", NULL);
 		if (error) err(EX_OSERR, "pledge");
 #endif
-#ifdef __FreeBSD__
-		error = cap_enter();
-		if (error) err(EX_OSERR, "cap_enter");
-#endif
 
 		error = handle(&req);
 		if (error) errx(EX_PROTOCOL, "%s", kcgi_strerror(error));
@@ -192,10 +177,6 @@ int main(int argc, char *argv[]) {
 	error = pledge("stdio wpath cpath recvfd", NULL);
 	if (error) err(EX_OSERR, "pledge");
 #endif
-#ifdef __FreeBSD__
-	error = cap_enter();
-	if (error) err(EX_OSERR, "cap_enter");
-#endif
 
 	for (
 		struct kreq req;