]> sourceware.org Git - systemtap.git/commit
PR15656: Check allow_execmod for stapdyn attach
authorJosh Stone <jistone@redhat.com>
Thu, 20 Jun 2013 01:23:24 +0000 (18:23 -0700)
committerJosh Stone <jistone@redhat.com>
Thu, 20 Jun 2013 01:29:23 +0000 (18:29 -0700)
commit56098c7902aebf5f33f117d8763125dbd51666e1
tree1d94ee7065340d1dfc6786f6a89ad936ada0afe0
parent5bb23177feb7974ef726c6b34bf3461729aeadd2
PR15656: Check allow_execmod for stapdyn attach

We already check for deny_ptrace and allow_execstack before stapdyn can
proceed, but it turns out that allow_execmod is also important for
Dyninst to attach to processes (e.g. stapdyn -x PID).

* stapdyn/dynutil.cxx (check_dyninst_sebools): If we're going to be
  attaching to a process, check allow_execmod too.
* stapdyn/stapdyn.cxx (main): Indicate whether we're attaching.
stapdyn/dynutil.cxx
stapdyn/dynutil.h
stapdyn/stapdyn.cxx
This page took 0.024881 seconds and 5 git commands to generate.