As described here ,using seccomp filters, we can block specific system calls when running example.c file.
The process will terminate and a "Bad system call" message will be printed:
$ ./example
Bad system call
I want to suppress the message.
Even this did not help:
$ ./example >/dev/null 2>/dev/null
Bad system call