public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug runtime/6903] New: scripts can be run by non-sudo and non-stapdev users
@ 2008-09-18 15:13 scox at redhat dot com
  2008-09-18 19:34 ` [Bug runtime/6903] " dsmith at redhat dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: scox at redhat dot com @ 2008-09-18 15:13 UTC (permalink / raw)
  To: systemtap

# It is expected that running a systemtap script will fail for normal users

> /usr/bin/stap -e 'probe begin { printf("hello\n"); exit() }'
Copy failed ("/tmp/stap7JpfJ9/stap_0a799d701652d96117065a219429e3fa_284.ko" to
"/home/scox/.systemtap/cache/0a/stap_0a799d701652d96117065a219429e3fa_284.ko"):
Permission denied
ERROR: You are trying to run stap as a normal user.

# However recent versions of stap incorrectly succeed for normal users
>  stap -V
SystemTap translator/driver (version 0.7.1/0.135 git branch master, commit e071e49b)


> id
uid=2558(scox) gid=2563(scox) groups=2563(scox)

# stap complains about caching but otherwise the script seems to work okay

# stap -e 'probe process("/bin/ls").end {printf("in probe process")}'
Copy failed ("/tmp/stapd07mpW/stap_cdf5233cb3f66091de60800627346256_233.ko" to
"/home/scox/.systemtap/cache/cd/stap_cdf5233cb3f66091de60800627346256_233.ko"):
Permission denied
in probe processin probe process^C> 

> /usr/local/bin/stap -e 'probe begin { printf("hello\n"); exit() }'
Copy failed ("/tmp/stapXuiEoI/stap_a525970ce776d4cd67c058513e04a605_303.ko" to
"/home/scox/.systemtap/cache/a5/stap_a525970ce776d4cd67c058513e04a605_303.ko"):
Permission denied
hello

-- 
           Summary: scripts can be run by non-sudo and non-stapdev users
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: runtime
        AssignedTo: systemtap at sources dot redhat dot com
        ReportedBy: scox at redhat dot com


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

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

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

end of thread, other threads:[~2008-09-19 12:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-18 15:13 [Bug runtime/6903] New: scripts can be run by non-sudo and non-stapdev users scox at redhat dot com
2008-09-18 19:34 ` [Bug runtime/6903] " dsmith at redhat dot com
2008-09-18 20:14 ` dsmith at redhat dot com
2008-09-18 21:27 ` dsmith at redhat dot com
2008-09-19 12:44 ` fche 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).