aboutsummaryrefslogtreecommitdiff
path: root/sandbox.c
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2021-01-25 15:25:04 +0000
committerOmar Polo <op@omarpolo.com>2021-01-25 15:25:04 +0000
commit2d3f837ac587063ac967c12afbdb219ba231256c (patch)
tree5e01b24f4d502b74e27b29b0ff4751975d009266 /sandbox.c
parent333a671107317e26f5dfe7bbb86489c62593aca7 (diff)
[seccomp] allow getrandom
Diffstat (limited to 'sandbox.c')
-rw-r--r--sandbox.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sandbox.c b/sandbox.c
index cf6ee8b..9958c64 100644
--- a/sandbox.c
+++ b/sandbox.c
@@ -179,6 +179,9 @@ sandbox()
/* alpine on amd64 does a clock_gettime(2) */
SC_ALLOW(clock_gettime),
+ /* void on aarch64 does a gettrandom */
+ SC_ALLOW(getrandom),
+
/* for directory listing */
SC_ALLOW(getdents64),