This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: ERROR: The effective user ID of staprun must be set to the root user.
- From: David Smith <dsmith at redhat dot com>
- To: Jim Keniston <jkenisto at us dot ibm dot com>
- Cc: systemtap <systemtap at sources dot redhat dot com>
- Date: Fri, 09 Jan 2009 09:17:02 -0600
- Subject: Re: ERROR: The effective user ID of staprun must be set to the root user.
- References: <1231455624.5813.2.camel@dyn9047018139.beaverton.ibm.com>
Jim Keniston wrote:
> I'm running 2.6.28 with yesterday's utrace bits, today's stap bits, and
> elfutils 0.138. When I run a stap script as a non-root member of group
> stapdev (e.g., the "Hello, world" script shown here), upon completion of
> the run, staprun reports:
> ERROR: The effective user ID of staprun must be set to the root user.
> Check permissions on staprun and ensure it is a setuid root program.
> and apparently fails to unload the stap-generated module.
>
> I get no such message if I run stap as root.
I'm seeing the same thing on a rawhide system running
2.6.29-0.18.rc0.git9.fc11.x86_64. At least for me, when I get that
error that means that the module didn't get removed correctly.
I'm unsure why this is happening. I don't appear to be getting selinux
messages.
I was looking into this yesterday, but got sidetracked. I'll try to
poke around more, but feel free to join me.
--
David Smith
dsmith@redhat.com
Red Hat
http://www.redhat.com
256.217.0141 (direct)
256.837.0057 (fax)