summaryrefslogtreecommitdiffstats
path: root/tapsets.cxx
diff options
context:
space:
mode:
authorDave Brolley <brolley@redhat.com>2009-09-14 11:58:22 -0400
committerDave Brolley <brolley@redhat.com>2009-09-14 11:58:22 -0400
commitd2c9ec9b6933fbe36834d7ad52be0994e96eb12c (patch)
treeb643f2c742d1fc1ea5e16ad9a6bc77481d88449c /tapsets.cxx
parent6db2f61f39669ad1f0fa23595b94ff22c8fc50d6 (diff)
downloadsystemtap-steved-d2c9ec9b6933fbe36834d7ad52be0994e96eb12c.tar.gz
systemtap-steved-d2c9ec9b6933fbe36834d7ad52be0994e96eb12c.tar.xz
systemtap-steved-d2c9ec9b6933fbe36834d7ad52be0994e96eb12c.zip
Allow remaining process.* probes for unprivileged users.
Diffstat (limited to 'tapsets.cxx')
-rw-r--r--tapsets.cxx23
1 files changed, 17 insertions, 6 deletions
diff --git a/tapsets.cxx b/tapsets.cxx
index 5b3e9169..225db319 100644
--- a/tapsets.cxx
+++ b/tapsets.cxx
@@ -2915,12 +2915,21 @@ dwarf_derived_probe::register_patterns(systemtap_session& s)
register_function_and_statement_variants(root->bind(TOK_KERNEL), dw);
register_function_and_statement_variants(root->bind_str(TOK_MODULE), dw);
- root->bind(TOK_KERNEL)->bind_num(TOK_STATEMENT)->bind(TOK_ABSOLUTE)->bind(dw);
- root->bind(TOK_KERNEL)->bind_str(TOK_FUNCTION)->bind_str(TOK_LABEL)->bind(dw);
- root->bind_str(TOK_PROCESS)->bind_str(TOK_FUNCTION)->bind_str(TOK_LABEL)->bind(dw);
- register_function_and_statement_variants(root->bind_str(TOK_PROCESS), dw, false/*!unprivileged_ok_p*/);
- root->bind_str(TOK_PROCESS)->bind_str(TOK_MARK)->bind(dw);
- root->bind_str(TOK_PROCESS)->bind_num(TOK_MARK)->bind(dw);
+ root->bind(TOK_KERNEL)->bind_num(TOK_STATEMENT)->bind(TOK_ABSOLUTE)
+ ->bind(dw);
+ root->bind(TOK_KERNEL)->bind_str(TOK_FUNCTION)->bind_str(TOK_LABEL)
+ ->bind(dw);
+
+ register_function_and_statement_variants(root->bind_str(TOK_PROCESS), dw, true/*unprivileged_ok_p*/);
+ root->bind_str(TOK_PROCESS)->bind_str(TOK_FUNCTION)->bind_str(TOK_LABEL)
+ ->allow_unprivileged()
+ ->bind(dw);
+ root->bind_str(TOK_PROCESS)->bind_str(TOK_MARK)
+ ->allow_unprivileged()
+ ->bind(dw);
+ root->bind_str(TOK_PROCESS)->bind_num(TOK_MARK)
+ ->allow_unprivileged()
+ ->bind(dw);
}
void
@@ -6249,9 +6258,11 @@ register_standard_tapsets(systemtap_session & s)
// XXX: user-space starter set
s.pattern_root->bind_num(TOK_PROCESS)
->bind_num(TOK_STATEMENT)->bind(TOK_ABSOLUTE)
+ ->allow_unprivileged()
->bind(new uprobe_builder ());
s.pattern_root->bind_num(TOK_PROCESS)
->bind_num(TOK_STATEMENT)->bind(TOK_ABSOLUTE)->bind(TOK_RETURN)
+ ->allow_unprivileged()
->bind(new uprobe_builder ());
// kernel tracepoint probes