From 0ed88eb252bdeb3dd9c5cd425d6a0e26816635b6 Mon Sep 17 00:00:00 2001 From: Dave Brolley Date: Tue, 8 Sep 2009 17:02:51 -0400 Subject: Warn if the pid specified by -x does not belong to an unprivileged user. --- runtime/task_finder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtime/task_finder.c') 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); } -- cgit