Public bug reported:
[Originally posted to the systemtap mailing list:
http://sourceware.org/ml/systemtap/2012-q1/msg00239.html]
I have a problem with running SystemTap as unprivileged user.
Executing the following probe as root works fine[0]:
stap -e 'probe vfs.read {printf("read performed\n"); exit()}'
However, running it as user (in 'stapusr' and stapdev' groups) fails[1].
Doing the same in Fedora 17 Alpha succeeds.
The module gets loaded, but 'stapio' is never run, and the removal of
the module seems to fail as well, as it's still loaded when 'stap'
exits.
All the suggested config options are set in the Ubuntu kernel[2] (except
of CONFIG_UTRACE, though that's not necessary for that test I guess).
There are no dmesg errors (see working[3] and failing[4] -DDEBUG_TRANS
output).
What I tried:
* A tailored 3.3-rc5 vanilla kernel with UTRACE patched in, same result.
* Disabled AppArmor, no joy.
* Tested the 3/3/2012 snapshot of SystemTap. That slightly changed the output
but not the end result[5].
* Tested a vanilla 3.3-rc5 kernel with the Fedora 17 Alpha kernel config[6],
which failed too.
Colin King's first idea: "I suspect it is some user space foo config
that we're missing" - would be interesting to reveal that foo. :-)
0: Working as root: http://paste.ubuntu.com/871163/
1: Failing as user: http://paste.ubuntu.com/871165/
2: Ubuntu kernel config: http://paste.ubuntu.com/871166/
3: 1.6 dmesg working: http://paste.ubuntu.com/871168/
Snapshot dmesg working: http://paste.ubuntu.com/871169/
4: 1.6 dmesg failing: http://paste.ubuntu.com/871172/
Snapshot dmesg failing: http://paste.ubuntu.com/871173/
5: Ubuntu with snapshot: http://paste.ubuntu.com/871190/
6: Fedora kernel config: http://paste.ubuntu.com/871175/
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: systemtap (not installed)
ProcVersionSignature: Ubuntu 3.2.0-18.29-generic 3.2.9
Uname: Linux 3.2.0-18-generic x86_64
ApportVersion: 1.94.1-0ubuntu2
Architecture: amd64
Date: Tue Mar 13 11:15:38 2012
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Beta amd64 (20110901)
SourcePackage: systemtap
UpgradeStatus: No upgrade log present (probably fresh install)
** Affects: systemtap (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug precise
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/953892
Title:
Fails to run as unprivileged user
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemtap/+bug/953892/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs