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 | 580bfa4e8ffcca1922802d9dd3965af7bc86f300 (patch) | |
tree | 52dd89e7ef83eab95ea3e5f63c20788f05f57329 /www | |
parent | Fix nested Bl-compact CSS rules (diff) | |
download | src-580bfa4e8ffcca1922802d9dd3965af7bc86f300.tar.gz src-580bfa4e8ffcca1922802d9dd3965af7bc86f300.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 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; |