[WRAPPER] fix libc argp_parse bridging; add selinux symbols#3462
[WRAPPER] fix libc argp_parse bridging; add selinux symbols#3462ptitSeb merged 1 commit intoptitSeb:mainfrom
Conversation
|
this is getting really complex! Are you sure your are not overthinking it? |
I encountered this while trying to run dynamic ldconfig(fedora docker images). I did think it wasn't necessary before. |
|
Before Error log: |
|
I'm not saying there is no need for a fix. I'm just wondering if there could be a simpler one. |
Alternatively, I could only handle the root argp and ignore the children for now, to see if that would resolve the current ldconfig issue. |
Latest attempt: It seems the simple operation works fine. The problem lies with the parsing and scanning libraries, caused by other functions. After fixing these issues, I submitted the solution along with the shallow copy of |
a0f3ff7 to
c97df25
Compare
Signed-off-by: Zewei Yang <yangzewei@loongson.cn>
|
Thank you. That's indeed much simpler without the shallow copy of the argp structure! |
I'm very happy to be able to help improve the project. This will allow the box64 to be used in more places. |
Added a callback bridge for libc's argp_parse (including children copying) to prevent program crashes caused by argp potentially being in .ro format;
also, filled in missing symbols and callback handling for libselinux to resolve runtime errors.