I am trying to develop a framework that will compile and execute (mostly random) C++ and Java packages.
However, given their random nature, I want to check the source (or the executable -- pre-execution) for any linux system calls before execution. If there is such a system call, I don't want to execute the program.
It is safe to assume that these packages wouldn't need to make any system calls to fulfill their functional purpose (they're not complex packages).
Edit: A bash command/script would be simplest, but any answer is fine.