]> sourceware.org Git - systemtap.git/commitdiff
PR6503: make module notifier update kmodule section addresses, GRSECURITY version
authorFrank Ch. Eigler <fche@redhat.com>
Thu, 1 Sep 2011 20:49:46 +0000 (16:49 -0400)
committerFrank Ch. Eigler <fche@redhat.com>
Thu, 1 Sep 2011 21:09:05 +0000 (17:09 -0400)
Some struct module fields are renamed under STAPCONF_GRSECURITY.

runtime/transport/symbols.c

index 66e86b21a252e8cf27a10eb19aa1123e34fed2bf..e03ab87911e44c508276b0e864a31a87f467b728 100644 (file)
@@ -84,10 +84,18 @@ static int _stp_module_notifier (struct notifier_block * nb,
 
                    So we cheat.  It's under the sofa.  */
 
+#ifndef STAPCONF_GRSECURITY
                 _stp_kmodule_update_address(mod->name, ".text",
                                             (uintptr_t)mod->module_core);
                 _stp_kmodule_update_address(mod->name, ".init.text",
                                             (uintptr_t)mod->module_init);
+#else
+                _stp_kmodule_update_address(mod->name, ".text",
+                                            (uintptr_t)mod->module_core_rx);
+                _stp_kmodule_update_address(mod->name, ".init.text",
+                                            (uintptr_t)mod->module_init_rx);
+               /* XXX: also: module_*_rw for .data? */
+#endif
                 /* _stp_kmodule_update_address(mod->name,
                                                ".note.gnu.build-id", ??); */
         }
This page took 0.027191 seconds and 5 git commands to generate.