SUSE / libpulp

libpulp enables live patching in user space applications.
GNU Lesser General Public License v2.1
55 stars 11 forks source link

Replace dlsym with ELF file parsing for checking for symbol existence #194

Closed giulianobelinassi closed 1 year ago

giulianobelinassi commented 1 year ago

Previously, a sanity check in the ulp tool checking if the symbols declared in the description section is actually in the code section. This check was done by loading the patch with dlopen. However some security flags in openbuildservice introduces a different behaviour on dlopen, turning it unreliable to check this.

Now we parse the file as a ELF and check if the symbol is in the symbol table.