summaryrefslogtreecommitdiffstats
path: root/runtime/task_finder.c
diff options
context:
space:
mode:
authorDave Brolley <brolley@redhat.com>2009-09-08 17:02:51 -0400
committerDave Brolley <brolley@redhat.com>2009-09-08 17:02:51 -0400
commit0ed88eb252bdeb3dd9c5cd425d6a0e26816635b6 (patch)
tree3a4059efa052023fbf724491c546f94b1565cc21 /runtime/task_finder.c
parent8b82510024a90c29114cf434e14bde84beb9b7da (diff)
downloadsystemtap-steved-0ed88eb252bdeb3dd9c5cd425d6a0e26816635b6.tar.gz
systemtap-steved-0ed88eb252bdeb3dd9c5cd425d6a0e26816635b6.tar.xz
systemtap-steved-0ed88eb252bdeb3dd9c5cd425d6a0e26816635b6.zip
Warn if the pid specified by -x does not belong to an unprivileged user.
Diffstat (limited to 'runtime/task_finder.c')
-rw-r--r--runtime/task_finder.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/task_finder.c b/runtime/task_finder.c
index 1a9a738a..eb81b8d3 100644
--- a/runtime/task_finder.c
+++ b/runtime/task_finder.c
@@ -1443,7 +1443,7 @@ stap_start_task_finder(void)
#ifndef STP_PRIVILEGED
/* Make sure unprivileged users only probe their own threads. */
if (_stp_uid != tsk_euid) {
- if (tgt->pid != 0) {
+ if (tgt->pid != 0 || _stp_target) {
_stp_warn("Process %d does not belong to unprivileged user %d",
tsk->pid, _stp_uid);
}