Commit b511ebe introduced an instruction queue which communicates to the ulp tool in order to patch memory addresses that are protected by seccomp. It works by telling the ulp tool certain addresses that should be ptrace'd with a write.
Now, turns out this is not really necessary, as the process can directly write into /proc/self/mem directly bypassing any kind of memory protection:
Commit b511ebe introduced an instruction queue which communicates to the
ulp
tool in order to patch memory addresses that are protected by seccomp. It works by telling theulp
tool certain addresses that should beptrace
'd with a write.Now, turns out this is not really necessary, as the process can directly write into
/proc/self/mem
directly bypassing any kind of memory protection:https://offlinemark.com/2021/05/12/an-obscure-quirk-of-proc/
This has the potencial of being simplier, faster and safer. So it should be a good refactoring for libpulp.