summaryrefslogtreecommitdiffstats
path: root/runtime/task_finder.c
diff options
context:
space:
mode:
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);
}