This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug runtime/9788] New: permissions error in staprun
- From: "eugen at debian dot org" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 25 Jan 2009 02:44:27 -0000
- Subject: [Bug runtime/9788] New: permissions error in staprun
- Reply-to: sourceware-bugzilla at sourceware dot org
There is some strange error in 20090124 snapshot:
% uname -a
Linux loki 2.6.29-rc2 #1 SMP PREEMPT Sun Jan 18 18:40:46 CET 2009 x86_64 GNU/Linux
% id
uid=1000(eugen) gid=1000(eugen)
groups=0(root),20(dialout),24(cdrom),25(floppy),29(audio),30(dip),44(video),46(plugdev),116(stapdev),1000(eugen)
% ls -l /usr/bin/staprun
-rwsr-xr-x 1 root root 31752 Ñ?Ñ?Ñ? 25 03:10 /usr/bin/staprun
% ./helloworld.stp -v
Pass 1: parsed user script and 47 library script(s) in 280usr/0sys/304real ms.
Pass 2: analyzed script: 1 probe(s), 1 function(s), 0 embed(s), 0 global(s) in
10usr/0sys/4real ms.
Pass 3: using cached
/home/eugen/.systemtap/cache/11/stap_11c0f8dddd8437f12d5b2ecdd542a4fd_325.c
Pass 4: using cached
/home/eugen/.systemtap/cache/11/stap_11c0f8dddd8437f12d5b2ecdd542a4fd_325.ko
Pass 5: starting run.
Error inserting module
'/tmp/stapJa73Uz/stap_11c0f8dddd8437f12d5b2ecdd542a4fd_325.ko': File exists
Retrying, after attempted removal of module
stap_11c0f8dddd8437f12d5b2ecdd542a4fd_325 (rc 0)
hello world
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.
Pass 5: run completed in 0usr/10sys/122real ms.
Pass 5: run failed. Try again with another '--vp 00001' option.
Here staprun is suid-root, and stap is able to run staprun and it can remove old
module and load new one (it displays "hello world"), but after that staprun
complains that it is not suid-root and cannot remove the module.
Everything works fine when run under root.
I do not remember anything similar with 20090117 snapshot and 2.6.28 kernel.
--
Summary: permissions error in staprun
Product: systemtap
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: runtime
AssignedTo: systemtap at sources dot redhat dot com
ReportedBy: eugen at debian dot org
http://sourceware.org/bugzilla/show_bug.cgi?id=9788
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.