seccomp_unotify(2) documents the hazard: after a continue verdict, the kernel re-reads any argument passed by pointer, so a path string a supervisor inspected can be overwritten before the kernel acts. Filtering on path strings in userspace is unsound, however carefully written. Sandlock addresses it two ways.
Path strings never reach policy callbacks
Events carry the syscall, PID, network destination, and argv, never a path. Path decisions belong in Landlock rules, which the kernel resolves at access time. Runtime decisions use deny_path() and allow_path(), which add Landlock restrictions rather than filtering strings.
argv is exposed, and made safe first
Before exposing argv for an execve, the supervisor freezes every task in its process index, including peers that could alias the memory. If the freeze cannot be established, for instance under a YAMA ptrace policy, the syscall is denied with EPERM. The invariant is never silently relaxed.