This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug runtime/14057] ERROR: Your privilege credentials (stapsys) are insufficient to run this module (stapdev required).
- From: "mjw at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sourceware dot org
- Date: Thu, 03 May 2012 19:06:31 +0000
- Subject: [Bug runtime/14057] ERROR: Your privilege credentials (stapsys) are insufficient to run this module (stapdev required).
- Auto-submitted: auto-generated
- References: <bug-14057-6586@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=14057
--- Comment #4 from Mark Wielaard <mjw at redhat dot com> 2012-05-03 19:06:31 UTC ---
I am slightly lost in how this code is supposed to work.
It looks like we are sending random garbage instead of the real permissions to
the module. In init_staprun we have:
privilege_t user_credentials;
and call insert_stap_module(& user_credentials) to initialize the credentials
so we can then call send_privilege_credentials(user_credentials);
insert_stap_module calls insert_module(modpath, special_options,
modoptions,
assert_stap_module_permissions,
user_credentials);
Where assert_stap_module_permissions is the callback function to actually set
the credentials. But assert_stap_module_permissions () doesn't set
user_credentials when getuid() == 0.
Am I missing something?
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.