Commit 4b69d03
committed
cc: support versioned SONAME in shared library resolution
bcc_procutils_which_so() and related helpers previously handled only
short library names (e.g. "ssl"), constructing "lib%s.so" and selecting
the first cache entry from /etc/ld.so.cache.
This change makes to recognize versioned SONAME fragments that contain
".so.x" (e.g. "ssl.so.3.5.3", "crypto.so.3"), treating such names as
exact matches instead of appending another ".so". This enables correct
resolution of versioned libraries (e.g. libssl.so.3 vs libssl.so.59)
while maintaining compatibility with existing short-name lookups.
This improves correctness on systems where multiple SONAME variants
coexist in the cache (e.g. OpenSSL vs LibreSSL).
Related: #5412
Signed-off-by: Hoyeon Lee <[email protected]>1 parent b63d7e3 commit 4b69d03
2 files changed
+14
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1723 | 1723 | | |
1724 | 1724 | | |
1725 | 1725 | | |
1726 | | - | |
| 1726 | + | |
1727 | 1727 | | |
1728 | 1728 | | |
1729 | 1729 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
469 | 469 | | |
470 | 470 | | |
471 | 471 | | |
472 | | - | |
| 472 | + | |
| 473 | + | |
473 | 474 | | |
474 | 475 | | |
475 | 476 | | |
| |||
478 | 479 | | |
479 | 480 | | |
480 | 481 | | |
481 | | - | |
482 | | - | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
483 | 489 | | |
484 | 490 | | |
485 | 491 | | |
| |||
494 | 500 | | |
495 | 501 | | |
496 | 502 | | |
497 | | - | |
| 503 | + | |
498 | 504 | | |
499 | 505 | | |
500 | 506 | | |
| |||
511 | 517 | | |
512 | 518 | | |
513 | 519 | | |
514 | | - | |
| 520 | + | |
| 521 | + | |
515 | 522 | | |
516 | 523 | | |
517 | 524 | | |
| |||
523 | 530 | | |
524 | 531 | | |
525 | 532 | | |
526 | | - | |
| 533 | + | |
527 | 534 | | |
528 | 535 | | |
529 | 536 | | |
| |||
0 commit comments