diff options
author | David Smith <dsmith@redhat.com> | 2009-12-08 10:40:27 -0600 |
---|---|---|
committer | David Smith <dsmith@redhat.com> | 2009-12-08 10:40:27 -0600 |
commit | 851418deb65964ef73f55e2aab0f3733c0e0e2e8 (patch) | |
tree | 5b7ff0c9fd478b99d066198be41a17e62abcd36a | |
parent | 2d971c6b8835c7e38ce78dd554827f5f96bc7c04 (diff) | |
download | systemtap-steved-851418deb65964ef73f55e2aab0f3733c0e0e2e8.tar.gz systemtap-steved-851418deb65964ef73f55e2aab0f3733c0e0e2e8.tar.xz systemtap-steved-851418deb65964ef73f55e2aab0f3733c0e0e2e8.zip |
Revert "PR 10641 fixed by checking module name in unprivileged mode."
This reverts commit b2ea60606801aa9bf243f22318ac4bd8a25094fe.
* main.cxx (checkOptions): Remove unprivileged mode module name check.
* testsuite/parseko/cmdline05.stp: Delete unneeded testcase.
* testsuite/parseok/cmdline03.stp: Ditto.
-rw-r--r-- | main.cxx | 5 | ||||
-rwxr-xr-x | testsuite/parseko/cmdline05.stp | 6 | ||||
-rwxr-xr-x | testsuite/parseok/cmdline03.stp | 6 |
3 files changed, 0 insertions, 17 deletions
@@ -429,11 +429,6 @@ checkOptions (systemtap_session &s) cerr << "You can't specify -g and --unprivileged together." << endl; optionsConflict = true; } - if (s.module_name.compare(0, 5, "stap_") != 0) - { - cerr << "In unprivileged mode, the module name must start with 'stap_'." << endl; - optionsConflict = true; - } } if (!s.kernel_symtab_path.empty()) diff --git a/testsuite/parseko/cmdline05.stp b/testsuite/parseko/cmdline05.stp deleted file mode 100755 index f8c437ea..00000000 --- a/testsuite/parseko/cmdline05.stp +++ /dev/null @@ -1,6 +0,0 @@ -#! /bin/sh - -# Make sure unprivileged ('--unprivileged') option isn't accepted when -# a module name not starting with 'stap_' is used. - -stap --unprivileged -m 'nfs' -p1 -e 'probe begin { exit() }' diff --git a/testsuite/parseok/cmdline03.stp b/testsuite/parseok/cmdline03.stp deleted file mode 100755 index d0ba5bbf..00000000 --- a/testsuite/parseok/cmdline03.stp +++ /dev/null @@ -1,6 +0,0 @@ -#! /bin/sh - -# Make sure unprivileged ('--unprivileged') option is accepted when a -# module name starting with 'stap_' is used. - -stap --unprivileged -m 'stap_foo' -p1 -e 'probe begin { exit() }' |