From 87b3c533593d630100eef22e14859aa4f14a9615 Mon Sep 17 00:00:00 2001 From: "Frank Ch. Eigler" Date: Wed, 15 May 2013 22:34:18 -0400 Subject: [PATCH] java probes: make these unprivileged * tapset-method.cxx (register_tapset_java): bind_unprivileged the lot, considering that they are simply uprobes. * tapset/system.stp (system): Mark as /* unprivileged */. --- tapset-method.cxx | 10 ++++++++-- tapset/system.stp | 2 +- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/tapset-method.cxx b/tapset-method.cxx index bce3382fa..fcdc3cd18 100644 --- a/tapset-method.cxx +++ b/tapset-method.cxx @@ -436,19 +436,25 @@ register_tapset_java (systemtap_session& s) root->bind_str (TOK_JAVA) ->bind_str (TOK_CLASS)->bind_str (TOK_METHOD) + ->bind_privilege(pr_all) ->bind(builder); root->bind_str (TOK_JAVA) ->bind_str (TOK_CLASS)->bind_str (TOK_METHOD) - ->bind (TOK_RETURN)->bind(builder); + ->bind (TOK_RETURN) + ->bind_privilege(pr_all) + ->bind(builder); root->bind_num (TOK_JAVA) ->bind_str (TOK_CLASS)->bind_str (TOK_METHOD) + ->bind_privilege(pr_all) ->bind (builder); root->bind_num (TOK_JAVA) ->bind_str (TOK_CLASS)->bind_str (TOK_METHOD) - ->bind (TOK_RETURN)->bind (builder); + ->bind (TOK_RETURN) + ->bind_privilege(pr_all) + ->bind (builder); #endif } diff --git a/tapset/system.stp b/tapset/system.stp index 2c5f3337d..654e7a8c9 100644 --- a/tapset/system.stp +++ b/tapset/system.stp @@ -8,6 +8,6 @@ * probe completes. The command is run with the same UID as the user * running the stap or staprun command. */ -function system (cmd:string) %{ +function system (cmd:string) %{ /* unprivileged */ _stp_ctl_send(STP_SYSTEM, STAP_ARG_cmd, strlen(STAP_ARG_cmd)+1); %} -- 2.43.5