diff options
author | Dave Brolley <brolley@redhat.com> | 2009-04-22 11:57:00 -0400 |
---|---|---|
committer | Dave Brolley <brolley@redhat.com> | 2009-04-22 11:57:00 -0400 |
commit | 88e8da383e47adafc9e75c4f10aecd0ce4ad959f (patch) | |
tree | 0770182c737b0779554a7b0bcd1786fb37b6b8c9 /elaborate.h | |
parent | 623a41aeb47995f6b5790e38f9e0e10959f98b4e (diff) | |
download | systemtap-steved-88e8da383e47adafc9e75c4f10aecd0ce4ad959f.tar.gz systemtap-steved-88e8da383e47adafc9e75c4f10aecd0ce4ad959f.tar.xz systemtap-steved-88e8da383e47adafc9e75c4f10aecd0ce4ad959f.zip |
2009-04-22 Dave Brolley <brolley@redhat.com>
* elaborate.h (unprivileged_whitelist): Removed.
(unprivileged_ok): New member of match_node.
(allow_unprivileged,unprivileged_allowed): New methods of match_node.
* elaborate.cxx (match_node): Initialize unprivileged_ok. Remove
initialization of unprivileged_whitelist.
(allow_unprivileged,unprivileged_allowed): New methods of match_node.
(matchnode::find_and_build): Remove check of unprivileged_whitelist.
Call unprivileged_allowed.
* tapsets.cxx (dwarf_derived_probe::register_function_and_statement_variants):
New parameter: unprivileged_ok.
(dwarf_derived_probe::register_function_variants): Likewise.
(dwarf_derived_probe::register_statement_variants): Likeiwse.
(register_standard_tapsets): Call allow_unprivileged for nodes which are
safe for unprivileged users.
Diffstat (limited to 'elaborate.h')
-rw-r--r-- | elaborate.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/elaborate.h b/elaborate.h index ca0182d1..36439c4f 100644 --- a/elaborate.h +++ b/elaborate.h @@ -236,8 +236,7 @@ match_node typedef std::map<match_key, match_node*>::iterator sub_map_iterator_t; sub_map_t sub; derived_probe_builder* end; - - std::vector<std::string> unprivileged_whitelist; + bool unprivileged_ok; public: match_node(); @@ -252,6 +251,9 @@ match_node match_node* bind_str(std::string const & k); match_node* bind_num(std::string const & k); void bind(derived_probe_builder* e); + + match_node* allow_unprivileged (bool b = true); + bool unprivileged_allowed () const; }; // ------------------------------------------------------------------------ |