Skip to content

Commit 6283f4b

Browse files
committed
Allow writev is seccomp sandbox.
This seems to be used by recent glibcs at least in some configurations. From bz#3512, ok djm@
1 parent 923c3f4 commit 6283f4b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sandbox-seccomp-filter.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,9 @@ static const struct sock_filter preauth_insns[] = {
312312
#ifdef __NR_write
313313
SC_ALLOW(__NR_write),
314314
#endif
315+
#ifdef __NR_writev
316+
SC_ALLOW(__NR_writev),
317+
#endif
315318
#ifdef __NR_socketcall
316319
SC_ALLOW_ARG(__NR_socketcall, 0, SYS_SHUTDOWN),
317320
SC_DENY(__NR_socketcall, EACCES),

0 commit comments

Comments
 (0)