diff options
author | June McEnroe <june@causal.agency> | 2021-10-17 11:59:07 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2021-10-17 11:59:07 -0400 |
commit | 3bf76db1426ce8e41aca50733e4d314610000489 (patch) | |
tree | 245f33934b948d7278f0942804a916aebc62b505 /www | |
parent | Fix nested Bl-compact CSS rules (diff) | |
download | src-3bf76db1426ce8e41aca50733e4d314610000489.tar.gz src-3bf76db1426ce8e41aca50733e4d314610000489.zip |
Remove capsicum support from up
Diffstat (limited to 'www')
-rw-r--r-- | www/temp.causal.agency/up.c | 19 |
1 files changed, 0 insertions, 19 deletions
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 <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; |