diff options
author | David Smith <dsmith@redhat.com> | 2009-12-07 15:17:58 -0600 |
---|---|---|
committer | David Smith <dsmith@redhat.com> | 2009-12-07 15:17:58 -0600 |
commit | b2ea60606801aa9bf243f22318ac4bd8a25094fe (patch) | |
tree | 013ef6344464cb92802e651758f74ad7045d2ef0 /testsuite/parseko | |
parent | 9983df163a0b1743de5777f940b9d6a827142476 (diff) | |
download | systemtap-steved-b2ea60606801aa9bf243f22318ac4bd8a25094fe.tar.gz systemtap-steved-b2ea60606801aa9bf243f22318ac4bd8a25094fe.tar.xz systemtap-steved-b2ea60606801aa9bf243f22318ac4bd8a25094fe.zip |
PR 10641 fixed by checking module name in unprivileged mode.
* main.cxx (checkOptions): If in unprivileged mode, make sure module name
starts with 'stap_'.
* testsuite/parseko/cmdline05.stp: New testcase.
* testsuite/parseok/cmdline03.stp: New testcase.
Diffstat (limited to 'testsuite/parseko')
-rwxr-xr-x | testsuite/parseko/cmdline05.stp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/testsuite/parseko/cmdline05.stp b/testsuite/parseko/cmdline05.stp new file mode 100755 index 00000000..f8c437ea --- /dev/null +++ b/testsuite/parseko/cmdline05.stp @@ -0,0 +1,6 @@ +#! /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() }' |