Hacker News new | ask | show | jobs
by 4ad 2933 days ago
Systrace was removed because it's unsafe for multi-threaded programs because of TOCTOU.
2 comments

The race only existed for path strings. systrace was no worse than seccomp in this respect (which doesn't even permit filtering on paths precisely because of the systrace exploit), yet still much easier to use.

systrace was removed because it went largely unused. Theoretically powerful, in practice it made the wrong compromises. seccomp recapitulated the same compromises, and it's not surprising seccomp uptake has been similarly weak.

TOCTOU = time-of-check time-of-use