diff options
author | Dave Brolley <brolley@redhat.com> | 2009-04-08 12:02:31 -0400 |
---|---|---|
committer | Dave Brolley <brolley@redhat.com> | 2009-04-08 12:02:31 -0400 |
commit | 83d18bfb001f334309163e54d6c5bd28a1829035 (patch) | |
tree | 6300baea12d8c3fd33ae97b470c41c75cd70182a | |
parent | 25ca9e9568b33bb244cfb77d924bd0b0ccbab6a0 (diff) | |
download | systemtap-steved-83d18bfb001f334309163e54d6c5bd28a1829035.tar.gz systemtap-steved-83d18bfb001f334309163e54d6c5bd28a1829035.tar.xz systemtap-steved-83d18bfb001f334309163e54d6c5bd28a1829035.zip |
Disable unprivileged user check temporarily.
-rw-r--r-- | translate.cxx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/translate.cxx b/translate.cxx index 63e84a1f..9e1c2519 100644 --- a/translate.cxx +++ b/translate.cxx @@ -1101,10 +1101,9 @@ c_unparser::emit_unprivileged_user_check () // unload the module. o->newline(); o->newline() << "static int systemtap_unprivileged_user_check (void) {"; - o->newline(1) << "struct group *stgr;"; - o->newline() << "if (_stp_uid == 0)"; +#if 0 + o->newline(1) << "if (_stp_uid == 0)"; o->newline(1) << "return 0;"; -#error can we call getgrpnam???? o->newline(-1) << "stgr = getgrnam(\"stapdev\");"; o->newline() << "if (stgr != NULL && _stp_gid == stgr->gr_gid)"; o->newline(1) << "return 0;"; @@ -1114,6 +1113,9 @@ c_unparser::emit_unprivileged_user_check () o->newline(-1) << "_stp_error (\"You are attempting to run stap as an ordinary user.\");"; o->newline() << "_stp_error (\"Your module must be compiled using the --unprivileged option.\");"; o->newline() << "return 1;"; +#else + o->newline(1) << "return 0;"; +#endif o->newline(-1) << "}\n"; } |