* [Bug runtime/4357] New: staprun should print more obvious errors when not run as root
@ 2007-04-13 15:02 fche at redhat dot com
2007-05-06 16:39 ` [Bug runtime/4357] " sarahgindin at gmail dot com
2007-08-16 23:24 ` dsmith at redhat dot com
0 siblings, 2 replies; 5+ messages in thread
From: fche at redhat dot com @ 2007-04-13 15:02 UTC (permalink / raw)
To: systemtap
A user reports:
[eteo@kerndev ~]$ staprun ioblock.ko
insmod: error inserting 'ioblock.ko': -1 Operation not permitted
ERROR, couldn't insmod probe module ioblock.ko
Couldn't initialize staprun. Exiting.
It would be better if staprun produced fewer but higher-quality errors.
One way to do this would be to stop calling /sbin/insmod, and just call
the create_module(2) syscall. If that returns EPERM, staprun can figure
out why it failed, and print just one salient line.
--
Summary: staprun should print more obvious errors when not run as
root
Product: systemtap
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: runtime
AssignedTo: systemtap at sources dot redhat dot com
ReportedBy: fche at redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=4357
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug runtime/4357] staprun should print more obvious errors when not run as root
2007-04-13 15:02 [Bug runtime/4357] New: staprun should print more obvious errors when not run as root fche at redhat dot com
@ 2007-05-06 16:39 ` sarahgindin at gmail dot com
2007-05-07 19:47 ` Stone, Joshua I
2007-08-16 23:24 ` dsmith at redhat dot com
1 sibling, 1 reply; 5+ messages in thread
From: sarahgindin at gmail dot com @ 2007-05-06 16:39 UTC (permalink / raw)
To: systemtap
------- Additional Comments From sarahgindin at gmail dot com 2007-05-06 17:39 -------
Created an attachment (id=1771)
--> (http://sourceware.org/bugzilla/attachment.cgi?id=1771&action=view)
test
--
http://sourceware.org/bugzilla/show_bug.cgi?id=4357
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Bug runtime/4357] staprun should print more obvious errors when not run as root
2007-05-06 16:39 ` [Bug runtime/4357] " sarahgindin at gmail dot com
@ 2007-05-07 19:47 ` Stone, Joshua I
2007-05-07 21:22 ` Frank Ch. Eigler
0 siblings, 1 reply; 5+ messages in thread
From: Stone, Joshua I @ 2007-05-07 19:47 UTC (permalink / raw)
To: systemtap
sarahgindin at gmail dot com wrote:
> ------- Additional Comments From sarahgindin at gmail dot com 2007-05-06 17:39 -------
> Created an attachment (id=1771)
> --> (http://sourceware.org/bugzilla/attachment.cgi?id=1771&action=view)
> test
This is very clearly a spam attachment -- is this a legitimate "test" of
the spam filtering? I suspect not, and there's a similar attachment on
bug #2033. What is the proper bugzilla method for dealing with this?
Josh
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Bug runtime/4357] staprun should print more obvious errors when not run as root
2007-05-07 19:47 ` Stone, Joshua I
@ 2007-05-07 21:22 ` Frank Ch. Eigler
0 siblings, 0 replies; 5+ messages in thread
From: Frank Ch. Eigler @ 2007-05-07 21:22 UTC (permalink / raw)
To: Stone, Joshua I; +Cc: systemtap
"Stone, Joshua I" <joshua.i.stone@intel.com> writes:
> This is very clearly a spam attachment -- is this a legitimate
> "test" of the spam filtering? [...] What is the proper bugzilla
> method for dealing with this?
Apparently there isn't one, short of low-level SQL manipulation
of the database. ARGH.
- FChE
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug runtime/4357] staprun should print more obvious errors when not run as root
2007-04-13 15:02 [Bug runtime/4357] New: staprun should print more obvious errors when not run as root fche at redhat dot com
2007-05-06 16:39 ` [Bug runtime/4357] " sarahgindin at gmail dot com
@ 2007-08-16 23:24 ` dsmith at redhat dot com
1 sibling, 0 replies; 5+ messages in thread
From: dsmith at redhat dot com @ 2007-08-16 23:24 UTC (permalink / raw)
To: systemtap
------- Additional Comments From dsmith at redhat dot com 2007-08-16 18:19 -------
With the new staprun security model (see bug 4523 for details), staprun no
longer requires root access. However, you must be either root, a member of the
'stapdev' group, or a member of the 'stapusr' group to run staprun.
If you aren't root or a member of the 'stapdev' or 'stapusr' groups, then you
will get the following error message when starting staprun (in this example the
'news' user is used, which isn't a member of 'stapdev' or 'stapusr'):
$ sudo runuser -c "staprun stap_open.ko" news
ERROR: you must be a member of either group "stapdev" or group "stapusr"
staprun [-v] [-c cmd ] [-x pid] [-u user]
[-A|-L] [-b bufsize] [-o FILE] MODULE [module-options]
-v Increase verbosity.
-c cmd Command 'cmd' will be run and staprun will
exit when it does. The '_stp_target' variable
will contain the pid for the command.
-x pid Sets the '_stp_target' variable to pid.
-o FILE Send output to FILE.
-b buffer size The systemtap module specifies a buffer size.
Setting one here will override that value. The
value should be an integer between 1 and 64
which be assumed to be the buffer size in MB.
That value will be per-cpu in bulk mode.
-L Load module and start probes, then detach.
-A Attach to loaded systemtap module.
MODULE can be either a module name or a module path. If a
module name is used, it is looked for in the following
directory: /lib/modules/`uname -r`/systemtap
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://sourceware.org/bugzilla/show_bug.cgi?id=4357
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2007-08-16 18:19 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-13 15:02 [Bug runtime/4357] New: staprun should print more obvious errors when not run as root fche at redhat dot com
2007-05-06 16:39 ` [Bug runtime/4357] " sarahgindin at gmail dot com
2007-05-07 19:47 ` Stone, Joshua I
2007-05-07 21:22 ` Frank Ch. Eigler
2007-08-16 23:24 ` dsmith at redhat dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).