]> sourceware.org Git - systemtap.git/commit
PR10650: markup some unprivileged-safe tapset functions
authorFrank Ch. Eigler <fche@elastic.org>
Thu, 17 Sep 2009 02:32:28 +0000 (22:32 -0400)
committerFrank Ch. Eigler <fche@elastic.org>
Thu, 17 Sep 2009 02:37:24 +0000 (22:37 -0400)
commit6ecd877049008c5abe9c6720ea8fc64732f47eb5
tree407a536c1271b8e5757899e461c481e599266d67
parent6846cfc8a5cdb24fccb19037b27a180d2300ee09
PR10650: markup some unprivileged-safe tapset functions

Add /* unprivileged */ to a variety of tapset embedded-c functions,
together with uid-assertion-checking code as needed.  This is only
an initial set, and may need to grow or shrink after further testing.

Prototyped-By: Dave Brolley <brolley@redhat.com>
* runtime/runtime.h (is_myproc, assert_is_myproc): New macros.
* runtime/addr-map.c (lookup_bad_addr): Reject if !is_myproc
  in unprivileged mode.
* runtime/print.c (_stp_print_kernel_info): Add unprivileged
  mode info.
* tapset/DEVGUIDE: Document /* pure */ and /* unprivileged */.
* tapset/*.stp: Add /* unprivileged */ here and there, in
  questionable cases along with an assert_is_myproc().
runtime/addr-map.c
runtime/print.c
runtime/runtime.h
tapset/DEVGUIDE
tapset/context.stp
tapset/conversions.stp
tapset/string.stp
tapset/timestamp_gtod.stp
tapset/ucontext-symbols.stp
tapset/ucontext-unwind.stp
tapset/utrace.stp
This page took 0.029505 seconds and 5 git commands to generate.