summaryrefslogtreecommitdiff
path: root/tests/seccomp.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2015-12-18 10:15:10 +0100
committerNikos Mavrogiannopoulos <nmav@redhat.com>2015-12-18 10:15:41 +0100
commit3c626a48251ae361ba9823145a6234841322e896 (patch)
tree11eaa2f458b3fc58405349554d33c03d92a7ef12 /tests/seccomp.c
parentd0899dbc4344d84a71a3901c489624439fdbe15a (diff)
downloadgnutls-3c626a48251ae361ba9823145a6234841322e896.tar.gz
Reduce the number of used syscalls by using sendmsg() instead of writev()
We relied on sendmsg() anyway for the MSG_NO_SIGNAL version of the calls, thus it is a good idea to avoid calling writev() and use sendmsg(). That way we reduce the number of calls required for seccomp.
Diffstat (limited to 'tests/seccomp.c')
-rw-r--r--tests/seccomp.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/tests/seccomp.c b/tests/seccomp.c
index 557d71ac2d..8427fd9f7b 100644
--- a/tests/seccomp.c
+++ b/tests/seccomp.c
@@ -67,9 +67,6 @@ int disable_system_calls(void)
ADD_SYSCALL(sendto, 0);
ADD_SYSCALL(recvfrom, 0);
- /* writev() is used explicitly */
- ADD_SYSCALL(writev, 0);
-
/* to read from /dev/urandom */
ADD_SYSCALL(read, 0);
ADD_SYSCALL(getrandom, 0);