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: fche at redhat dot com (Frank Ch. Eigler)
- To: Jim Keniston <jkenisto at us dot ibm dot com>
- Cc: systemtap <systemtap at sources dot redhat dot com>
- Date: Fri, 09 Jan 2009 15:32:57 -0500
- 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 <jkenisto@us.ibm.com> writes:
> [...]
> Pass 5: starting run.
> Error inserting module
> '/tmp/stapiMOfTu/stap_3ef244575eb0700481e9d673c7d9d914_354.ko': File
> exists
> Retrying, after attempted removal of module
> stap_3ef244575eb0700481e9d673c7d9d914_354 (rc 0)
This suggests that the module was left in memory after a previous run,
as if "staprun -d" failed.
> 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.
According to the source code, this comes from a specific check
upon geteuid() != 0. So the setuid mechanism may be defeated
somehow - perhaps /usr/local is mounted nosuid?
> Pass 5: run completed in 10usr/0sys/162real ms.
> Pass 5: run failed. Try again with another '--vp 00001' option.
> [...]
> [jimk@xxx stap]$ lsmod | grep stap
> stap_3ef244575eb0700481e9d673c7d9d914_354 27240 0
> stap_7f0af3bd64bc4349367c78489e1f6351_98711 164088 0
This suggests that the same condition.
- FChE