]> sourceware.org Git - systemtap.git/commit
PR14244: Assert that the real UID has access to debugfs
authorJosh Stone <jistone@redhat.com>
Thu, 14 Jun 2012 23:52:28 +0000 (16:52 -0700)
committerJosh Stone <jistone@redhat.com>
Thu, 14 Jun 2012 23:52:28 +0000 (16:52 -0700)
commitd4caed28490b1480b29191c9d4c875a0f41175bd
tree57053a31bdc548cc3912eeaab64219f54c7c0632
parentfdb3f24278a7afc35b716d22b991efc0896a6479
PR14244: Assert that the real UID has access to debugfs

Some systems are now defaulting debugfs to mode 0700.  If the user has
no access to debugfs, then they won't be able to communicate with the
systemtap module.  Thus, this should be a non-starter, before even
loading the module at all.

This was previously causing staprun to fail after loading the module,
when it checked R/W access to the module's .ctl file.  But since we also
restrict removing modules to those you can control, staprun would not
unload the new module either.
runtime/staprun/staprun_funcs.c
This page took 0.026832 seconds and 5 git commands to generate.