public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
From: "chwang at redhat dot com" <sourceware-bugzilla@sourceware.org>
To: systemtap@sources.redhat.com
Subject: [Bug runtime/10724] stap should not retry if there is a permissions error
Date: Fri, 02 Oct 2009 18:05:00 -0000	[thread overview]
Message-ID: <20091002180523.29727.qmail@sourceware.org> (raw)
In-Reply-To: <20091002180346.10724.chwang@redhat.com>


------- Additional Comments From chwang at redhat dot com  2009-10-02 18:05 -------
(In reply to comment #0)
> Currently, stap command attempts to delete modules and retry when it encounters
> an error. This should not happen when the error encountered is caused by a lack
> of permission [since relaunching won't change the permissions].

Reproduction notes:
1. Log in as a user without stapdev privileges
2. Attempt to run stap -e 'probe begin {printf("Hello World!")}'
3. Output will look like: 
ERROR: You are trying to run stap as a normal user.
You should either be root, or be part of either group "stapdev" or group "stapusr".
Alternatively, your module must be compiled using the --unprivileged option and
signed by a trusted signer.
For more information, please consult the "SAFETY AND SECURITY" section of the
"stap(1)" manpage
Retrying, after attempted removal of module <blah> (rc -1)
ERROR: You are trying to run stap as a normal user.
You should either be root, or be part of either group "stapdev" or group "stapusr".
Alternatively, your module must be compiled using the --unprivileged option and
signed by a trusted signer.
For more information, please consult the "SAFETY AND SECURITY" section of the
"stap(1)" manpage

Note the repetition of the error message caused by an attempted relaunch.

-- 


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

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

  reply	other threads:[~2009-10-02 18:05 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-02 18:03 [Bug runtime/10724] New: " chwang at redhat dot com
2009-10-02 18:05 ` chwang at redhat dot com [this message]
2009-10-02 18:46 ` [Bug runtime/10724] " chwang at redhat dot com

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20091002180523.29727.qmail@sourceware.org \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=systemtap@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).