diff options
author | Dave Brolley <brolley@redhat.com> | 2009-04-06 11:39:35 -0400 |
---|---|---|
committer | Dave Brolley <brolley@redhat.com> | 2009-04-06 11:39:35 -0400 |
commit | faf38cd9bd782cf460b2b46f29a6922205b0eab1 (patch) | |
tree | de1038c7453064a3baa678207e09a58104b708e5 /translate.h | |
parent | 8d3854b9f124aa818552d462bd8cbd2577be298e (diff) | |
download | systemtap-steved-faf38cd9bd782cf460b2b46f29a6922205b0eab1.tar.gz systemtap-steved-faf38cd9bd782cf460b2b46f29a6922205b0eab1.tar.xz systemtap-steved-faf38cd9bd782cf460b2b46f29a6922205b0eab1.zip |
2009-04-06 Dave Brolley <brolley@redhat.com>
* translate.cxx (emint_unprivileged_user_check): New method of c_unparser.
(c_unparser::emit_module_init): If --unprivileged has been specified,
generate code to call systemtap_unprivileged_user_check.
(translate_pass): Call emit_unprivileged_user_check.
* translate.h (emint_unprivileged_user_check): New method of c_unparser.
Diffstat (limited to 'translate.h')
-rw-r--r-- | translate.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/translate.h b/translate.h index fdff9521..2c59a495 100644 --- a/translate.h +++ b/translate.h @@ -1,5 +1,5 @@ // -*- C++ -*- -// Copyright (C) 2005 Red Hat Inc. +// Copyright (C) 2005, 2009 Red Hat Inc. // // This file is part of systemtap, and is free software. You can // redistribute it and/or modify it under the terms of the GNU General @@ -79,6 +79,9 @@ struct unparser virtual void emit_functionsig (functiondecl* v) = 0; // static void function_NAME (context* c); + virtual void emit_unprivileged_user_check () = 0; + // static void systemtap_check_unprivileged_user + virtual void emit_module_init () = 0; virtual void emit_module_exit () = 0; // XXX |