DescriptionAdd test for patching a system call instruction
This tests patching a specific, fixed instruction sequence, whereas
the existing tests just test whatever is in the version of glibc on
the system.
Change library.cc to make the patching code easier to test: Split out
a patchSystemCallsInRange() method, since the existing methods assume
they are operating on a whole dynamically-loaded ELF object. Change
maps_ to be per-instance so that creating Library objects with
different Maps objects works.
This doesn't try to cover the various corner cases in library.cc yet.
BUG=http://code.google.com/p/seccompsandbox/issues/detail?id=17
TEST=test_patching_syscall
Committed: http://code.google.com/p/seccompsandbox/source/detail?r=177
Patch Set 1 #Patch Set 2 : Add comment #
Total comments: 1
Messages
Total messages: 3 (0 generated)
|