tests: Make deleted and vdsosyms testcases work with "restricted ptrace".
authorMark Wielaard <mjw@redhat.com>
Thu, 15 Jan 2015 12:39:06 +0000 (13:39 +0100)
committerMark Wielaard <mjw@redhat.com>
Fri, 16 Jan 2015 15:59:46 +0000 (16:59 +0100)
commitcc74c21c0de87cc3c7b293234808b3118c4d85db
tree1f6e3053e2d38a13d1316a9bd8cf14f864658a78
parentddbf23a4594b5a6f1b387b15d42312a203075d80
tests: Make deleted and vdsosyms testcases work with "restricted ptrace".

Some systems might have "restricted ptrace" that doesn't allow process
inspection of arbitrary processes. Change the deleted testcase to
explicitly allow any other process to inspect it using the PR_SET_PTRACER
prctl set to PR_SET_PTRACER_ANY. Change the vdsosyms testcase to inspect
the process itself which should always be allowed.

Reported-by: Anatol Pomozov <anatol.pomozov@gmail.com>
Signed-off-by: Mark Wielaard <mjw@redhat.com>
tests/ChangeLog
tests/deleted.c
tests/vdsosyms.c