You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ocserv/ocserv-0.11.4-getrandom.patch

25 lines
714 B

From cc1dbf1c246375c175b4392e3c6ca2139b0c355a Mon Sep 17 00:00:00 2001
From: Nikos Mavrogiannopoulos <nmav@redhat.com>
Date: Wed, 14 Sep 2016 10:20:41 +0200
Subject: [PATCH] seccomp: added getrandom() to the accepted list of calls
---
src/worker-privs.c | 1 +
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/src/worker-privs.c b/src/worker-privs.c
index 1557c59..33dc46c 100644
--- a/src/worker-privs.c
+++ b/src/worker-privs.c
@@ -61,6 +61,7 @@ int disable_system_calls(struct worker_st *ws)
ADD_SYSCALL(alarm, 0);
ADD_SYSCALL(getpid, 0);
ADD_SYSCALL(brk, 0);
+ ADD_SYSCALL(getrandom, 0); /* used by gnutls 3.5.x */
ADD_SYSCALL(recvmsg, 0);
ADD_SYSCALL(sendmsg, 0);
--
libgit2 0.24.0