I need to use Rust in a security-paranoid environment, so I’m using Linux’s seccomp to disable program’s access to lots of things, including timers (due to spectre).
However, timers are a commonly used functionality, so avoiding them in the code, especially all the dependencies, is hard.
I’ve got a report that my program gets killed for calling
clock_gettime somewhere, but I can’t reproduce it on my machine. How can I find all potential uses of
clock_gettime in my program? Ideally by static analysis.