parent
6326ab472d
commit
361405c03b
@ -0,0 +1,19 @@
|
|||||||
|
diff --git a/src/worker-privs.c b/src/worker-privs.c
|
||||||
|
index ea503cd0..3d4d5fa4 100644
|
||||||
|
--- a/src/worker-privs.c
|
||||||
|
+++ b/src/worker-privs.c
|
||||||
|
@@ -166,6 +166,14 @@ int disable_system_calls(struct worker_st *ws)
|
||||||
|
ADD_SYSCALL(fstat, 0);
|
||||||
|
ADD_SYSCALL(lseek, 0);
|
||||||
|
|
||||||
|
+ /* if running under socketwrapper ensure we allow its calls */
|
||||||
|
+ if (getenv("SOCKET_WRAPPER_DIR") != NULL) {
|
||||||
|
+ ADD_SYSCALL(stat64, 0);
|
||||||
|
+ ADD_SYSCALL(readlink, 0);
|
||||||
|
+ ADD_SYSCALL(newfstatat, 0);
|
||||||
|
+ ADD_SYSCALL(mmap, 0);
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
ADD_SYSCALL(getsockopt, 0);
|
||||||
|
ADD_SYSCALL(setsockopt, 0);
|
||||||
|
|
Loading…
Reference in new issue