File paths?
File paths?
Posted Jun 4, 2018 21:37 UTC (Mon) by wahern (subscriber, #37304)In reply to: File paths? by Cyberax
Parent article: Deferring seccomp decisions to user space
The solution is to copy the path or otherwise make it immutable. That's costly and it's why the the seccomp BPF filter originally didn't support processing the file path string. Has that changed?
Posted Jun 4, 2018 21:41 UTC (Mon)
by Cyberax (✭ supporter ✭, #52523)
[Link] (2 responses)
The helper code then can do all the required open/access/stat stuff and return the results as a file descriptor (open) or a static block of data (stat/access).
Obviously, copying the parameters will add some overhead, but it should be way less than doing additional ptrace/read_mem calls from the userspace helper.
Posted Jun 5, 2018 19:26 UTC (Tue)
by wahern (subscriber, #37304)
[Link] (1 responses)
Posted Jun 5, 2018 21:34 UTC (Tue)
by Cyberax (✭ supporter ✭, #52523)
[Link]
File paths?
File paths?
File paths?
