Warnings aside, the example mentioned here works when running stap as an
unprivileged user on focal:
vagrant@ubuntu-focal:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu Focal Fossa (development branch)
Release: 20.04
Codename: focal
vagrant@ubuntu-focal:~$ id
uid=1000(vagrant) gid=1000(vagrant)
groups=1000(vagrant),120(stapdev),121(stapusr)
vagrant@ubuntu-focal:~$ stap -e 'probe vfs.read {printf("read performed\n");
exit()}'
WARNING: Kernel function symbol table missing [man warning::symbols]
WARNING: Potential type mismatch in reassignment: identifier 'root_dentry' at
/usr/share/systemtap/tapset/linux/dentry.stp:246:3
source: root_dentry = @cast(task,
"task_struct")->fs->root->dentry
^
read performed
Number of similar warning messages suppressed: 1.
Rerun with -v to see them.
vagrant@ubuntu-focal:~$
** Changed in: systemtap (Ubuntu)
Status: Confirmed => Fix Committed
--
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