public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug runtime/9788] New: permissions error in staprun
@ 2009-01-25  3:00 eugen at debian dot org
  2009-01-25 20:00 ` [Bug runtime/9788] " eugen at debian dot org
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: eugen at debian dot org @ 2009-01-25  3:00 UTC (permalink / raw)
  To: systemtap

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2103 bytes --]

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.

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2009-02-10 19:58 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-25  3:00 [Bug runtime/9788] New: permissions error in staprun eugen at debian dot org
2009-01-25 20:00 ` [Bug runtime/9788] " eugen at debian dot org
2009-01-26 11:25 ` fche at redhat dot com
2009-01-27 19:56 ` dsmith at redhat dot com
2009-01-29  9:23 ` dsmith at redhat dot com
2009-01-29 17:18 ` dsmith at redhat dot com
2009-01-29 17:21 ` dsmith at redhat dot com
2009-01-29 19:27 ` dsmith at redhat dot com
2009-01-29 19:54 ` dsmith at redhat dot com
2009-01-30 15:21 ` ananth at in dot ibm dot com
2009-01-31  2:11 ` dsmith at redhat dot com
2009-02-04 20:10 ` dsmith at redhat dot com
2009-02-10 22:00 ` 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).