summary refs log tree commit diff homepage
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2021-10-17 12:37:05 -0400
committerJune McEnroe <june@causal.agency>2021-10-17 12:37:05 -0400
commit9167e1ebd9739a39e62d1077ecc150421584c1ab (patch)
tree3a2443a8c7fb5af8abcb860cb6c35b085e2158c2
parentRetry getch() after ERR (diff)
downloadplay-9167e1ebd9739a39e62d1077ecc150421584c1ab.tar.gz
play-9167e1ebd9739a39e62d1077ecc150421584c1ab.zip
Remove capsicum support
-rw-r--r--play.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/play.c b/play.c
index ca3ac4f..e063dda 100644
--- a/play.c
+++ b/play.c
@@ -27,10 +27,6 @@
 #include <time.h>
 #include <unistd.h>
 
-#ifdef __FreeBSD__
-#include <sys/capsicum.h>
-#endif
-
 #define ARRAY_LEN(a) (sizeof(a) / sizeof((a)[0]))
 
 typedef unsigned uint;
@@ -335,20 +331,6 @@ int main(int argc, char *argv[]) {
 	if (error) err(EX_OSERR, "pledge");
 #endif
 
-#ifdef __FreeBSD__
-	int error = cap_enter();
-	if (error) err(EX_OSERR, "cap_enter");
-
-	cap_rights_t rights;
-	cap_rights_init(&rights, CAP_READ, CAP_WRITE, CAP_SEEK, CAP_FLOCK);
-
-	error = cap_rights_limit(fileno(top), &rights);
-	if (error) err(EX_OSERR, "cap_rights_limit");
-
-	error = cap_rights_limit(fileno(weekly), &rights);
-	if (error) err(EX_OSERR, "cap_rights_limit");
-#endif
-
 	struct Score new = {
 		.date = time(NULL),
 		.score = game->play(),