This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug runtime/14057] ERROR: Your privilege credentials (stapsys) are insufficient to run this module (stapdev required).


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]