diff options
author | Dave Brolley <brolley@redhat.com> | 2009-06-11 11:58:55 -0400 |
---|---|---|
committer | Dave Brolley <brolley@redhat.com> | 2009-06-11 11:58:55 -0400 |
commit | b12c8986778619db5bec0a5e52f2d49247e6b5ba (patch) | |
tree | b5136adab377bb897ca7d132b1807487c19d61db /tapset-been.cxx | |
parent | 36b66efaae572dddcfb04e9a995ca69063d0e1ff (diff) | |
download | systemtap-steved-b12c8986778619db5bec0a5e52f2d49247e6b5ba.tar.gz systemtap-steved-b12c8986778619db5bec0a5e52f2d49247e6b5ba.tar.xz systemtap-steved-b12c8986778619db5bec0a5e52f2d49247e6b5ba.zip |
Only sign modules if --unprivileged is specified.
Don't generate an error message for unsigned modules.
Make sure module signature exists before attempting to copy to the cache.
Allow timer p[robes for unprivileged users.
Diffstat (limited to 'tapset-been.cxx')
-rw-r--r-- | tapset-been.cxx | 32 |
1 files changed, 24 insertions, 8 deletions
diff --git a/tapset-been.cxx b/tapset-been.cxx index 3f693837..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)->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()); + 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 : */ |