summaryrefslogtreecommitdiffstats
path: root/tapset-been.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'tapset-been.cxx')
-rw-r--r--tapset-been.cxx32
1 files changed, 24 insertions, 8 deletions
diff --git a/tapset-been.cxx b/tapset-been.cxx
index d695bdf3..99b59574 100644
--- a/tapset-been.cxx
+++ b/tapset-been.cxx
@@ -215,14 +215,30 @@ register_tapset_been(systemtap_session& s)
{
match_node* root = s.pattern_root;
- root->bind(TOK_BEGIN)->bind(new be_builder(BEGIN));
- root->bind_num(TOK_BEGIN)->bind(new be_builder(BEGIN));
- root->bind(TOK_END)->bind(new be_builder(END));
- root->bind_num(TOK_END)->bind(new be_builder(END));
- root->bind(TOK_ERROR)->bind(new be_builder(ERROR));
- root->bind_num(TOK_ERROR)->bind(new be_builder(ERROR));
-
- root->bind(TOK_NEVER)->bind(new never_builder());
+ root->bind(TOK_BEGIN)
+ ->allow_unprivileged()
+ ->bind(new be_builder(BEGIN));
+ root->bind_num(TOK_BEGIN)
+ ->allow_unprivileged()
+ ->bind(new be_builder(BEGIN));
+
+ root->bind(TOK_END)
+ ->allow_unprivileged()
+ ->bind(new be_builder(END));
+ root->bind_num(TOK_END)
+ ->allow_unprivileged()
+ ->bind(new be_builder(END));
+
+ root->bind(TOK_ERROR)
+ ->allow_unprivileged()
+ ->bind(new be_builder(ERROR));
+ root->bind_num(TOK_ERROR)
+ ->allow_unprivileged()
+ ->bind(new be_builder(ERROR));
+
+ root->bind(TOK_NEVER)
+ ->allow_unprivileged()
+ ->bind(new never_builder());
}
/* vim: set sw=2 ts=8 cino=>4,n-2,{2,^-2,t0,(0,u0,w1,M1 : */