From faf38cd9bd782cf460b2b46f29a6922205b0eab1 Mon Sep 17 00:00:00 2001 From: Dave Brolley Date: Mon, 6 Apr 2009 11:39:35 -0400 Subject: 2009-04-06 Dave Brolley * 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. --- translate.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'translate.h') 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 -- cgit