From 3bf76db1426ce8e41aca50733e4d314610000489 Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Sun, 17 Oct 2021 11:59:07 -0400 Subject: Remove capsicum support from up --- www/temp.causal.agency/up.c | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'www') diff --git a/www/temp.causal.agency/up.c b/www/temp.causal.agency/up.c index d0177979..561a8901 100644 --- a/www/temp.causal.agency/up.c +++ b/www/temp.causal.agency/up.c @@ -26,10 +26,6 @@ #include #include -#ifdef __FreeBSD__ -#include -#endif - #include #include @@ -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; -- cgit 1.4.1