Added getrandom to the list of allowed syscalls (#1375851)
parent
dc4fb1af30
commit
d0dbbc1a19
@ -0,0 +1,24 @@
|
||||
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
|
||||
|
Loading…
Reference in new issue