This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug runtime/14057] ERROR: Your privilege credentials (stapsys) are insufficient to run this module (stapdev required).


http://sourceware.org/bugzilla/show_bug.cgi?id=14057

--- Comment #2 from Mark Wielaard <mjw at redhat dot com> 2012-05-03 15:31:06 UTC ---
Doh. I was testing in the previous comment with the old binary (with the patch
removed). Here things are again with plain git master. ids and groups the same.

[mark@rhel6-i686 ~]$ stap -V
Systemtap translator/driver (version 1.6/0.152 non-git sources)
Copyright (C) 2005-2011 Red Hat, Inc. and others
This is free software; see the source for copying conditions.
enabled features: AVAHI LIBRPM LIBSQLITE3 NSS BOOST_SHARED_PTR
TR1_UNORDERED_MAP NLS
[mark@rhel6-i686 ~]$ stap
/home/mark/src/systemtap/testsuite/systemtap.base/backtrace.stp 
Warning: /usr/bin/staprun is not executable (Permission denied)
Warning: /usr/bin/staprun exited with status: 127
Pass 5: run failed.  Try again with another '--vp 00001' option.
[mark@rhel6-i686 ~]$ sudo stap
/home/mark/src/systemtap/testsuite/systemtap.base/backtrace.stp 
[sudo] password for mark: 
begin
Systemtap probe: begin
timer.ms(100)
Systemtap probe: timer.ms(100)
end
Systemtap probe: end
[mark@rhel6-i686 ~]$ /home/mark/install/systemtap/bin/stap -V
Systemtap translator/driver (version 1.8/0.152 commit release-1.7-194-g571f964
+ changes)
Copyright (C) 2005-2012 Red Hat, Inc. and others
This is free software; see the source for copying conditions.
enabled features: LIBSQLITE3 NSS BOOST_SHARED_PTR TR1_UNORDERED_MAP NLS
[mark@rhel6-i686 ~]$ /home/mark/install/systemtap/bin/stap
/home/mark/src/systemtap/testsuite/systemtap.base/backtrace.stp
You are trying to run systemtap as a normal user.
You should either be root, or be part of the group "stapusr" and possibly one
of the groups "stapsys" or "stapdev".
Systemtap translator/driver (version 1.8/0.152 commit release-1.7-194-g571f964
+ changes)
Copyright (C) 2005-2012 Red Hat, Inc. and others
This is free software; see the source for copying conditions.
enabled features: LIBSQLITE3 NSS BOOST_SHARED_PTR TR1_UNORDERED_MAP NLS

Usage: stap [options] FILE         Run script in file.
   or: stap [options] -            Run script on stdin.
   or: stap [options] -e SCRIPT    Run given script.
   or: stap [options] -l PROBE     List matching probes.
   or: stap [options] -L PROBE     List matching probes and local variables.

Options (in /home/mark/.systemtap/rc and on command line):
   --         end of translator options, script options follow
   -h --help  show help
   -V --version  show version
   -p NUM     stop after pass NUM 1-5, instead of 5
              (parse, elaborate, translate, compile, run)
   -v         add verbosity to all passes
   --vp {N}+  add per-pass verbosity [00000]
   -k         keep temporary directory
   -u         unoptimized translation 
   -w         suppress warnings 
   -W         turn warnings into errors 
   -g         guru mode 
   -P         prologue-searching for function probes 
   -b         bulk (percpu file) mode 
   -s NUM     buffer size in megabytes, instead of 0
   -I DIR     look in DIR for additional .stp script files, in addition to
              /home/mark/install/systemtap/share/systemtap/tapset
   -D NM=VAL  emit macro definition into generated C code
   -B NM=VAL  pass option to kbuild make
   --modinfo NM=VAL
              include a MODULE_INFO(NM,VAL) in the generated C code
   -G VAR=VAL set global variable to value
   -R DIR     look in DIR for runtime, instead of
              /home/mark/install/systemtap/share/systemtap/runtime
   -r DIR     cross-compile to kernel with given build tree; or else
   -r RELEASE cross-compile to kernel /lib/modules/RELEASE/build, instead of
              /lib/modules/2.6.32-220.7.1.el6.i686/build
   -a ARCH    cross-compile to given architecture, instead of i386
   -m MODULE  set probe module name, instead of 
              stap_13173
   -o FILE    send script output to file, instead of stdout. This supports
              strftime(3) formats for FILE
   -c CMD     start the probes, run CMD, and exit when it finishes
   -x PID     sets target() to PID
   -F         run as on-file flight recorder with -o.
              run as on-memory flight recorder without -o.
   -S size[,n] set maximum of the size and the number of files.
   -d OBJECT  add unwind/symbol data for OBJECT file
   --ldd      add unwind/symbol data for all referenced object files.
   --all-modules
              add unwind/symbol data for all loaded kernel objects.
   -t         collect probe timing information
   -q         generate information on tapset coverage
   --privilege=PRIVILEGE_LEVEL
              check the script for constructs not allowed at the given
privilege level
   --unprivileged
              equivalent to --privilege=stapusr
   --compatible=VERSION
              suppress incompatible language/tapset changes beyond VERSION,
              instead of 1.8
   --check-version
              displays warnings where a syntax element may be 
              version dependent
   --skip-badvars
              substitute zero for bad context $variables
   --suppress-handler-errors
              catch all runtime errors, quietly skip probe handlers
   --use-server[=SERVER-SPEC]
              specify systemtap compile-servers
   --list-servers[=PROPERTIES]
              report on the status of the specified compile-servers:
              all,specified,online,trusted,signer,compatible
   --trust-servers[=TRUST-SPEC]
              add/revoke trust of specified compile-servers:
              ssl,signer,all-users,revoke,no-prompt
   --use-server-on-error[=yes/no]
              retry compilation using a compile server upon compilation error
   --remote=HOSTNAME
              run pass 5 on the specified ssh host.
              may be repeated for targeting multiple hosts.
   --remote-prefix
              prefix each line of remote output with a host index.
   --tmpdir=NAME
              specify name of temporary directory to be used.
   --download-debuginfo[=OPTION]
              automatically download debuginfo using ABRT.
              yes,no,ask,<timeout value>
   --dump-probe-types
              show a list of available probe types.
   --sysroot=DIR
              specify sysroot directory where target files (executables,
              libraries, etc.) are located.
   --sysenv=VAR=VALUE
              provide an alternate value for an environment variable
              where the value on a remote system differs.  Path
              variables (e.g. PATH, LD_LIBRARY_PATH) are assumed to be
              relative to the sysroot.

[mark@rhel6-i686 ~]$ sudo /home/mark/install/systemtap/bin/stap
/home/mark/src/systemtap/testsuite/systemtap.base/backtrace.stp
ERROR: Your privilege credentials (stapsys) are insufficient to run this module
(stapdev required).
WARNING: /home/mark/install/systemtap/bin/staprun exited with status: 1
Pass 5: run failed.  Try again with another '--vp 00001' option.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]