]> sourceware.org Git - systemtap.git/commitdiff
PR10551 continued: grsecurity support in transport/symbols.c
authorNicolas Brito <n.brito@lexfo.fr>
Mon, 24 Aug 2015 13:48:32 +0000 (09:48 -0400)
committerFrank Ch. Eigler <fche@redhat.com>
Mon, 24 Aug 2015 13:48:32 +0000 (09:48 -0400)
A non-grsecism snuck into _stp_module_update_self().

runtime/transport/symbols.c

index 7274715f3576e0843dddbaf290fb35f3f6d5db5e..fe576c1da2fc35a193a0c3c7fc6c4afea4338175 100644 (file)
@@ -218,7 +218,11 @@ static int _stp_module_update_self (void)
                }
                else if (!strcmp(".text", attr->name)) {
                        _stp_module_self.sections[1].static_addr = attr->address;
+#ifdef STAPCONF_GRSECURITY
+                        _stp_module_self.sections[1].size = mod->core_size_rx;
+#else
                        _stp_module_self.sections[1].size = mod->core_text_size;
+#endif
                }
        }
 
This page took 0.027132 seconds and 5 git commands to generate.