Closed alexandernst closed 11 years ago
I can't apply a patch on top of yours repository. Can you create a branch with the modification instead?
@milabs Yes, give me a few minutes, please :)
@milabs Done, please have a look at https://github.com/alexandernst/procmon/tree/test
milabs@1d3e33cb80d97c424b147b035c0fa7ee1cf502d9 milabs@8169ddafdcc0c58ad9be65c4e7cc9949ef4b7d29
Fixed by https://github.com/alexandernst/procmon/commit/825b2d3fa80fca0c95dc4c426b2fc5ce7785fba0, https://github.com/alexandernst/procmon/commit/8169ddafdcc0c58ad9be65c4e7cc9949ef4b7d29, https://github.com/alexandernst/procmon/commit/1d3e33cb80d97c424b147b035c0fa7ee1cf502d9, https://github.com/alexandernst/procmon/commit/73a0d531fcaebb6d59775b1f1f85072e6b4bf557 and https://github.com/alexandernst/procmon/commit/05664123a53354d9569d155d6c8863bb98dfc612
I'm trying to remove the (UN)HOOK macros and instead hook/unhook all the syscalls iterating over a section with the relevant data.
I made a patch that should work, but it's failing for some strange reason.
This is the patch:
It seems that the loop iterates 3 times but there are only 2 structs saved in the section. I have noticed that if I remove the
__NR_
element from the struct, the loop iterates only 2 times.@milabs Any ideas?