about summary refs log tree commit diff homepage
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2021-09-24 19:36:47 -0400
committerJune McEnroe <june@causal.agency>2021-09-26 12:16:45 -0400
commit62a9ed3ab5f65c368b5b08d7e40d4d42426647ed (patch)
tree12a10ea17c78afbba04ec93703f3ab7f84b7c10e
parentLink with -lncursesw (diff)
downloadtorus-62a9ed3ab5f65c368b5b08d7e40d4d42426647ed.tar.gz
torus-62a9ed3ab5f65c368b5b08d7e40d4d42426647ed.zip
OpenBSD: pledge(2) server
-rw-r--r--server.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/server.c b/server.c
index e61f99e..314fccd 100644
--- a/server.c
+++ b/server.c
@@ -392,6 +392,11 @@ int main(int argc, char *argv[]) {
 		dprintf(pidFile, "%ju", (uintmax_t)getpid());
 	}
 
+#ifdef __OpenBSD__
+	error = pledge("stdio unix", NULL);
+	if (error) err(EX_OSERR, "pledge");
+#endif
+
 #ifdef __FreeBSD__
 	error = cap_enter();
 	if (error) err(EX_OSERR, "cap_enter");
h=2.3&id=9a34d1098e082b4fe976f0a6671581a0d967fdc5&follow=1'>Use configOpen to load localCAJune McEnroe 2020-08-24Use configPath to load client cert/privJune McEnroe 2020-08-24Use configOpen in getopt_configJune McEnroe 2020-08-24Import xdg.c from catgirlJune McEnroe 2020-08-23Replace “RAND_bytes” by “getentropy”Issam E. Maghni 2020-08-16contrib/palaver: Add no message preview flagsJune McEnroe 2020-08-13contrib/palaver: Don't set channel for PMsJune McEnroe 2020-08-13Fix unintended interception of NICK after registrationJune McEnroe 2020-08-12Add Additional Components section to READMEJune McEnroe 2020-08-12Document -L / palaver optionJune McEnroe 2020-08-11contrib/palaver: Document service configurationJune McEnroe 2020-08-11contrib/palaver: Add install target and rc scriptJune McEnroe 2020-08-11contrib/palaver: Implement command and notificationsJune McEnroe